Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: System Restore Point Shortcut

14 Nov 2014   #170
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by BKraengel View Post
Hi Shawn,

After all this time I hope I can still contact you. I just stumbled across your Restore Point Shortcuts. They are just what I've been looking for, thank you.

I've been trying to follow your logic, but there are a few rough spots I don't understand...

1. You probably already know this, but in Windows 8.1 the SystemRestorePointCreationFrequency key is included in the Registry by default.

2. In your CreateSRP sub, the second line of code is redundant and can be completely removed.

3. You create an Install (Type 0) restore point. Is there any (simple) way of creating Manual, Automatic or Scheduled types? There are no options to do this in CreateRestorePoint, but Windows does it with the restore points it creates.

4. Is there any harm in creating a BEGIN_SYSTEM_CHANGE (EventType 100) restore point without closing it with a END_SYSTEM_CHANGE (EventType 101)?

5. Where can I find a list of the Error Codes returned by CreateRestorePoint?

Hello BK, and welcome to Seven Forums.

1) Yeah, I include it in the .vbs to make sure it's set properly in the registry.

2) The 2nd line of code is there to make it easy for someone to change it to have a restore point name they may want instead.

3) If you like, you could use the method 2 in the tutorial below to have a scheduled create restore point using Task Manager.

System Restore Point : Create at System Startup

4) It's important to end it to prevent issues or errors.

5) I'm not aware of a list of error codes, but Googling a specific error code will usually give you good results.


My System SpecsSystem Spec
14 Nov 2014   #171
BKraengel

8.1x64
 
 
More

Hi Shawn,

Thank you.

1. In question 3 I was referring to the fact that all your restore points are ..., 0, 100. A "0" restore point shows up in the Restore window as Type Install. When Windows creates a restore point it Types it as Install, Uninstall, Manual, Scheduled, Automatic, etc. Is there any way to change the Type to Manual, Automatic or Scheduled to make what you see in the Restore window agree with the Restore Point you are creating?

2. In question 4 I was also referring to the fact that all your restore points are ...0, 100. A "100" restore point is a BEGIN_SYSTEM_CHANGE, but you don't close it with an END_SYSTEM_CHANGE. Is this harmful? Is BEGIN_SYSTEM_CHANGE the actual beginning of a process or just a description of the restore point?
My System SpecsSystem Spec
14 Nov 2014   #172
Brink

64-bit Windows 10 Pro
 
 

So far, I've only been able to have the "Type" show as either "Install" (1, 10), "System" (11, 14), "Uninstall" (2), or "Unknown" (other numbers so far) by changing 0 to that number. I haven't found the number for "Manual" though.

The "100" is set properly to begin the restore point. It'll automatically end when finished.
My System SpecsSystem Spec
28 Dec 2014   #173
BKraengel

8.1x64
 
 
Uh-Oh!!

Hi Shawn,

Have you tried to run any of the automatic/scheduled programs in Win 8.1? Every time I try the infamous "What program do you want to use..." window pops up. That's telling me that the programs can't find WSH, so I give it to them. Here's how...

For the Program/Script on the Actions tab in Task Scheduler I enter simply Wscript.exe and for the Argument I use a fragment of the code from the ELSE clause:
Set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
sDesc = "Scheduled Restore Point"
sOut = SRP.createrestorepoint (sDesc, 11, 100)
If sOut <> 0 Then
MsgBox "Error " & sOut & ": Unable to create restore point.", 16, "Create Restore Point"
End If

Works fine! Every time!

Anyway, I don't (1) fully understand your code (or is it Ted's) or (2) see how the program is supposed to run.

1. What is the purpose of, why is it needed & what is it supposed to do...
If WScript.Arguments.Count = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " Run", , "runas", 1

2. Suppose the IF is True. The code executes then Exits without ever having set a restore point. So how do you get back in the program to set the restore point? LOL if it's scheduled for the wee hours. You can do it all in one pass if you change the IF-THEN-ELSE to IF-THEN and move the END IF up to where the ELSE was.
My System SpecsSystem Spec
.

28 Dec 2014   #174
Brink

64-bit Windows 10 Pro
 
 

Hello BK,

I wrote the .vbs scripts for the shortcuts in this tutorial.

That part of the code is to give you a UAC prompt to have the shortcut "Run as administrator".
My System SpecsSystem Spec
02 Sep 2015   #175
Viper3773

Windows 7 Home Premium 64bit
 
 

Great script! I have been using for a while now on Windows 8. To make this work with Windows 10, you need to make two quick changes.



Bonus info: If you want to make this script part of a scheduled task, then create a task that starts this program:
Code:
C:\Windows\System32\wscript.exe
With a path to your VBS file as the arguments (in quotes), so for example:
Code:
"C:\Users\Admin\Documents\Restore\Instant_Restore_Point.vbs"
My System SpecsSystem Spec
02 Sep 2015   #176
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by Viper3773 View Post
Great script! I have been using for a while now on Windows 8. To make this work with Windows 10, you need to make two quick changes.



Bonus info: If you want to make this script part of a scheduled task, then create a task that starts this program:
Code:
C:\Windows\System32\wscript.exe
With a path to your VBS file as the arguments (in quotes), so for example:
Code:
"C:\Users\Admin\Documents\Restore\Instant_Restore_Point.vbs"
If you like, you can use the Windows 10 version below instead.

System Restore Point shortcut - Create in Windows 10 - Windows 10 Forums
My System SpecsSystem Spec
02 Sep 2015   #177
Viper3773

Windows 7 Home Premium 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by Viper3773 View Post
Great script! I have been using for a while now on Windows 8. To make this work with Windows 10, you need to make two quick changes.



Bonus info: If you want to make this script part of a scheduled task, then create a task that starts this program:
Code:
C:\Windows\System32\wscript.exe
With a path to your VBS file as the arguments (in quotes), so for example:
Code:
"C:\Users\Admin\Documents\Restore\Instant_Restore_Point.vbs"
If you like, you can use the Windows 10 version below instead.

System Restore Point shortcut - Create in Windows 10 - Windows 10 Forums
Would have been helpful before But admittedly I did not look. Anything different besides what I stated?
My System SpecsSystem Spec
02 Sep 2015   #178
Brink

64-bit Windows 10 Pro
 
 

Nope, that was. We just had a separate version at our sister site www.tenforums.com instead.
My System SpecsSystem Spec
18 Apr 2016   #179
jdUnionngaden

Windows 7 Pro 64bit
 
 

Good morning All! ... Shawn Brink (?)
I've been using Shawn's Restore Point script for 4+ years on Windows 7. Has someone written one for Windows 10?

Thanks in advance for your assistance!
Best,
/jdU
My System SpecsSystem Spec
Comment

 System Restore Point Shortcut




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
Shortcut to create a restore point?
I would like a shortcut or a hot-key on my G15 keyboard to MAKE a system restore point, as I think the way to come to the window where the "make point"-button is, is way to long. But I can't get it to work :cry:. I think I have read about it in this forum earlier, but I have tried to search the...
Backup and Restore
Can System Restore Automatically Generate Daily Restore Point?
I used to be able to get a System Restore point generated daily and accessible on a calendar. I understand that the Restore Point calendar has been done away with, can't imagine why? Is it now possible to have a daily System Restore point automatically generated and easily accessible somewhere?...
Backup and Restore
Windows 7 system restore point. Can't create / restore .
Hi Ok I borke world recored for formating windows 7 , the last 2 months . The problem is ; Windows System restore keep freezing , I'm not trying to do system restore , but when I try to install/remove a software , windows try to create restore point , making the installation/removing...
Backup and Restore
System Restore how to set to show every past restore point inc/manual
I am having difficulties with this. 1. Does Win 7 limit the quantity of past restore points it shows upon user request? 2. If stored elsewhere where do I find them? 3. Is there a way to set it up to show at least the last 10 restore pointsd created, or is there a smaller limit. Right now the...
General Discussion
Shortcut to Create Restore Point
Hello all: I just migrated from XP to Win7 and am trying to get used to the changes. In XP I had a shortcut in my start menu that took me to the System Restore app. In XP this app covered both creating a restore point and performing an actual restore. In Win7 they are separate. The shortcut info...
Backup and Restore
create restore point... shortcut?
Since this is a beta and installing/testing alot of programs/drivers there is a need for restore points. Am wondering if there is a way to create a shortcut str8 to the dialogue box of naming the restore point with the create button... rather than pulling up the properties of system restore. To...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App