We need to regularly create system restore points on our user computers via command line.
The idea is to automate this process without deploying any 3rd party tools.
Step 1. Check if system restore is enabled on the computer. If it is not, enable it.
Step 2. Check the storage size allocated for system restore. If it is less than 6 GB, configure to to be 6 GB.
Step 3. Create a system restore point with a generic label e.g. "maintenance".
Step 4. Check if the system restore point got created or not by listing existing system restore points and comparing the labels with the generic label used in step3.
So this is the general idea of the script we want to create and I think I can do the other bits myself except for creating system restore point via command line.
I have tried the WMIC method, powershell method and everything else I can find on blogs and google search.
Most commands I run return the "execution successful" message.
But when I check manually if the system restore point got created or not by opening system restore GUI, I don't see the restore point created.
For the life of me I can't figure out what's going on.
So pls help !