Automate the creation of restore points
brucine Posted messages 25313 Registration date Status Member Last intervention -
under Windows 11
1 answer
-
-
Hello,
Unless there is a particular requirement that would complicate things (names of restore points, cleanup of earlier points controlled by the script, manual creation...) the scheduled task itself, whether created graphically or via the command line, has reinvented the wheel for the past few months; Windows provides the feature at Settings-System-Recovery-Restore at a moment in the past.
At most the restore point interval under Windows Home is 24 hours and unmodifiable, and a script can only be used to schedule a longer interval (not shorter unless you modify the registry to allow more than one in a day).
It’s not useful to report that you’ve checked the security of a batch; before doing anything else you can right-click to modify to verify what’s inside, but that doesn’t necessarily solve the problem: a number of security software censors by default the execution of all scripts and you will therefore have to bypass it.- It's curious, we can't comment on what you write without you taking it as a critique and a personal attack, even though I did propose an alternative. If we absolutely want to go through a batch that you can't even take raw from the shell without modification (backup names, control and deletion of old ones...) and then authorize it in the security software and schedule it, you just need to right-click edit to check that it contains nothing other than what it claims, but in general that remains a headache. It's so much simpler unless there is a specific requirement that wasn't stated by the requester and whose context you haven't also considered, such as passing through the new Windows feature as I highlighted.
-