Create Shadowcopy ignoring FilesNotToSnapshot in Windows 7

Discussion in 'Windows 7' started by liam2, Nov 4, 2018.

  1. liam2

    liam2 MDL Junior Member

    Jun 23, 2009
    54
    16
    0
    #1 liam2, Nov 4, 2018
    Last edited: Nov 5, 2018
    Hi, in system restore I have enabled just "Only restore previous versions of files".
    And I have added in the registry key:
    "HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot"
    some folders and extensions that I don't want to be part of the snapshots.

    The problem is that when I create the shadow copy from the System Restore GUI or with the scheduled task "\Microsoft\Windows\SystemRestore\SR" (rundll32.exe /d srrstr.dll,ExecuteScheduledSPPCreation) everything works fine and the files and folders of FilesNotToSnapshot are excluded.

    But when I create the snapshot with the command "wmic.exe shadowcopy call create volume='c:\'" the FilesNotToSnapShot registry keys are ignored and they are included in the snapshot.

    I want to create the shadowcopy from the command line every day, and the problem with the SR task is that it creates a snapshot just once a week.

    Any help would be appreciated cause I haven't found anything about this issue on the web.