Page 15 of 15 FirstFirst ... 5131415
  1.    1 Week Ago #140
    Join Date : Sep 2016
    Posts : 12
    windows 10

    Quote Originally Posted by Gideon7 View Post
    Well, after banging my head against the wall for several days I finally got it working. I can now create scheduled system protection restore points that work reliably on Windows 10 Anniversary Edition (Build 1607) in my U-Recover utility, and I'm pretty confident I got it right.

    At first I couldn't for the life of me figure out why Windows Update was doing auto SR just fine on Build 1607 when nothing else was. Then I discovered the final piece of the puzzle, a new undocumented registry value called SystemRestorePointCreationFrequencyWU (WU = Windows Update). Once I sussed that out, along with adding some pixy magic via CoInitializeSecurity to correctly cloak for DCOM and to explicitly request SPNEGO for domain authentication, it all clicked into place and scheduled SR started working in Task Scheduler like a champ.

    Boy, that was hard. I really want to thank you guys for the incredible amount of research that you did on this problem. There is no way I could have figured this out without your help. THANK YOU!!
    Well done Gideon, looks like your hard work paid off. Can you share with us your technique to create Restore Points on a schedule?
      My System SpecsSystem Spec

  2.    1 Week Ago #141
    Join Date : Sep 2016
    United States
    Posts : 4
    Windows 10

    Basically, you need to fix or avoid the four bugs that I cited previously. Any solution will require tracking what happens after the asynchronous call to SRSetRestorePoint returns. In my case I handled it by injecting a passive API hook to watch for the internal CreateThread call so that I could scarf the thread handle and do a WaitForMultipleObjects on it to know when the thread finishes.

    After the async op completes I check with VSS to see if the snapshot was actually created or not. This is because third-party VSS Writers can veto a snapshot for any number of reasons so you need to check the writer responses in order to retrieve the error message to explain the reason for the failure.

    SRSetRestorePoint will sometimes lie and claim the restore point was actually created when it in fact decided to skip the whole deal, which can happen if you try to create more than one Restore Point within 24 hours. To work around this you need to fiddle with SystemRestorePointCreationFrequency (documented) and SystemRestorePointCreationFrequencyWU (not documented).

    Finally, SRSetRestorePoint uses DCOM so you need to do all the usual gymnastics for getting CoInitializeSecurity to allow interprocess RPC calls between security boundaries. In particular you need to construct the proper DACL with the proper access rights. See
      My System SpecsSystem Spec

  3.    1 Week Ago #142
    Join Date : Sep 2016
    Posts : 12
    windows 10

    Thanks for your advice Gideon, however it is too technical for me.

    Perhaps Microsoft will one day provide a Task Scheduler that actually works.
      My System SpecsSystem Spec

Page 15 of 15 FirstFirst ... 5131415

Similar Threads
Tutorial Category
Shortcut Arrow Icon - Change, Remove, or Restore in Windows 10
How to Change, Remove, or Restore Shortcut Arrow Overlay Icon in Windows 10 A shortcut is a link to an item (such as a file, folder, or app) on your PC. You can create shortcuts and then place them in a convenient location, such as on the...
System Restore Point - Create in Windows 10
How to Create a System Restore Point in Windows 10 If you're having problems with Windows 10 on your PC, you can try to refresh, reset, or restore it. System Restore uses a feature called system protection that regularly creates and saves...
This PC Shortcut - Create in Windows 10
How to Create a This PC Shortcut in Windows 10 My Computer was changed to This PC in Windows 8.1 and Windows RT 8.1. You would open File Explorer to view This PC. In Windows 10, File Explorer now opens to Quick access by default instead of...
Build 10130, No Restore Point
I updated my build this morning to build 10130 and everything on my system seems to be running so nice and smooth that I wanted to create a restore point. When I open the System Protection pane to create a restore point, everything is grayed out and...
Windows Insider
Restoring from Restore point - still no luck
After many, many attempts... installs, reinstalls, upgrades, ISO installs, the whole journey, I still cannot get a restore point to restore without messing up! No problem creating, no problem actually restoring, from control panel or boot. But...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 04:07.
Find Us
Twitter Facebook Google+

Windows 10 Forums