Remember I won't duplicate answers in prior replies like https://www.google.com/search?q=Access+denied+when+running+%22Create+Restore+Point%22+script&ie=utf-8&oe=utf-8
My thought is it's one of those or the script is running on a non-elevated context. You as the programmer will have to find a way to elevate the priveledge and tell Windows what user account to run this under.
-> In parting, Admin is not God. All accounts must obey permissions. Also, it's is DANGEROUS to be the only user. Always make a second local login admin account for a spare.
Hi guys,
I wonder if you can help me, I am trying to run the below action in Windows Task Scheduler calling program wmic.exe
/Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Startup Restore Point", 100, 7
To troubleshoot this I ran wmic.exe and executed that script above manually and appeared with the below error:
"Executing (SystemRestore)->CreateRestorePoint()
ERROR:
Description = Access Denied"
The reason I want to use this script is because I am trying to create a scheduled task to create a restore point automatically using Windows Task Scheduler.
I have checked the below points:
- System protection is turned on
- Registry Key for system restore has been correctly inputted (source: https://www.howtogeek.com/278388/how-to-make-windows-automatically-create-a-system-restore-point-at-startup/)
- I am the only user on this PC (home PC) and am an administrator
Anyone have any ideas on what else I can check to allow this to run successfully?
Thanks in advance,
Dan

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic