Arlen Holder
2020-09-07 21:28:14 UTC
Due to BSOD issues often cannibalizing the Windows 10 boot, I am creating
frequent restore points but I would like to script the restore point
creation with a batch command from the Win+R "Run" command box.
What am I doing wrong?
1. I can manually create a restore point any time I want to:
Win+R > sysdm.cpl > [System Protection][Create]
(This takes a minute to run to completion.)
2. When I look, that restore point is always created.
Win+R > sysdm.cpl > [System Protection][System Restore]
(_)Recommended restore
(o)Choose a different restore point
[Next] [x]Show more restore points
(I see all the many restore points that I manually created.)
3. But I want to script it, where I created this shortcut:
TARGET: %comspec% /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"
ICONFROM: C:\Windows\System32\imageres.dll
[Advanced][x]Run as administrator
4. When executed the command "appears" to work (albeit too quickly so):
Executing (SystemRestore)->CreateRestorePoint()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};
C:\Windows\system32>
(This takes only a split second to run to completion.)
4. But, when I look if the restore point was created, it doesn't exist:
Win+R > sysdm.cpl > [System Protection][System Restore]
(_)Recommended restore
(o)Choose a different restore point
[Next] [x]Show more restore points
(I only see the restore points that I manually created.)
What am I doing wrong?
Do you have a batch script to create a restore point on the fly?
frequent restore points but I would like to script the restore point
creation with a batch command from the Win+R "Run" command box.
What am I doing wrong?
1. I can manually create a restore point any time I want to:
Win+R > sysdm.cpl > [System Protection][Create]
(This takes a minute to run to completion.)
2. When I look, that restore point is always created.
Win+R > sysdm.cpl > [System Protection][System Restore]
(_)Recommended restore
(o)Choose a different restore point
[Next] [x]Show more restore points
(I see all the many restore points that I manually created.)
3. But I want to script it, where I created this shortcut:
TARGET: %comspec% /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"
ICONFROM: C:\Windows\System32\imageres.dll
[Advanced][x]Run as administrator
4. When executed the command "appears" to work (albeit too quickly so):
Executing (SystemRestore)->CreateRestorePoint()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};
C:\Windows\system32>
(This takes only a split second to run to completion.)
4. But, when I look if the restore point was created, it doesn't exist:
Win+R > sysdm.cpl > [System Protection][System Restore]
(_)Recommended restore
(o)Choose a different restore point
[Next] [x]Show more restore points
(I only see the restore points that I manually created.)
What am I doing wrong?
Do you have a batch script to create a restore point on the fly?
--
Windows requires hundreds of tweaks to get it running efficiently.
Windows requires hundreds of tweaks to get it running efficiently.