Creating a shadow copy using the “Backup” context in a PowerShell

前端 未结 1 1038
一生所求
一生所求 2021-02-02 05:01

I am in the process of writing a PowerShell script for backing up a Windows computer using rsync. To this end, I am attempting to use WMI from said script to create a non-persis

相关标签:
1条回答
  • 2021-02-02 05:42

    Your $shadow has a 5 on return value looking at the error message, your shadow id has all zeros , you would need to add a 1 or a 2 to the end of the volume shadow copy in the registry using binary or dword.

    find the folder in the registry named volsnap in your regedit search .volsnap.sys is found in the C:\Windows\System32\drivers directory. The file size is 52,352 bytes.The volsnap file contains Microsoft's digital signature make sure its the correct bytes.

    This confirms its authenticity. volsnap.sys appears to be a file that was compressed by an EXE-Packer. This technique is often used by trojans to keep the file size small and also hamper debugging efforts.

    However, this in itself is not sufficient reason to presume malicious intent, since even well-intentioned, professional software producers take advantage of compressed files. For this reason, 2% of all experts consider this file to be a possible threat. The probability that it can cause harm is high. Please consider the additional Comments from other users.

      shadow id          default 
                            00000000-0000-0000-0000-000000000000
                            00000000-0000-0000-0000-000000000005
    

    if it already has a 5 which it probably doesn't change it to 1

    or create new code

    Shadow id           $shadow 00000000-0000-0000-0000-0000000000001
    

    not exactly as shown.you may have to try different wording I'm not sure if $will work, if not, try the js standalone version.

    0 讨论(0)
提交回复
热议问题