George <
null@null.net> wrote:
Question for the experts:
In my Windows XP laptop I had a .vbs file that automatically created a
daily system restore point at startup. Can anyone share a .vbs file
that does the same on a Windows 10 (Home) laptop? And where in the
directory does that file need to be placed?
Easier to skip the VBS script (as a startup program), and just define a
Task Scheduler event that runs daily to run srtasks.exe with one
argument of ExecuteScheduledSPPCreation. Because it takes only 1
argument, you get no help when you run "srtasks.exe /?" in an elevated
command shell. srtasks.exe is under C:\Windows\System32. See:
https://www.file.net/process/srtasks.exe.html
You can find an example already defined in Task Scheduler under:
Task Scheduler Library -> Microsoft -> Windows -> SystemRestore
I wouldn't touch that entry, because it is likely called by another
process. That's why no trigger is defined for that scheduled task.
Create your own entry under the Task Scheduler Library node. You can
trigger your event to run daily, when you login, and other event types
that specify when to run the scheduled event.
To ensure it can access all files, you might have to define the
scheduled task to run under the SYSTEM account which has more privileges
than ran under an administrator account.
CPU usage will be high while srtasks is creating a restore point.
Whether srtasks creates a restore point or not likely depends on whether
you left enabled or disable System Restore. I have it disabled on all
drives except C: (OS) where is Windows and apps. I mostly consider it a
waste of disk space, and may disable it completely. SR tries to /mend/
a system. It is not an image backup. I schedule daily image backups
(full monthly, differential weekly, and incremental daily), and those
actually restore a partition back to its exact prior state, not try to
patch together a SR point onto the current state of a partition. Also,
SR points do not record everything in a partition. It takes a snapshot
of OS system files and the registry. I believe it also records some
Office settings. Snapshots don't always work to fix a problem, because
they are not complete. Image restores get /everything/ on your drive
back to what it was before.
A bandaid works okay on small abrasions and cuts. They are ineffective
on severe injury. You can try an SR restore, but you may have to resort
to restoring from a prior image backup, anyway.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)