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: VBScript to create "Restore Point" in Win7

10 Apr 2013   #1
bawldiggle

XP/7x32 & x64/8x64/8.1x64
 
 
VBScript to create "Restore Point" in Win7

A lot of drilling is required to create a restore-point.

This a sample VBscript I found in my research ...
Code:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","My Restore Point")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
Code is rather sloppy -- not my style without declared variables and "Option Explicit"
sstrDescription variable needs to be handled if InputBox is cancelled.

Q1: Are these "methods" and "objects" kosher in Win7 32/64 and WinXP ?
Q2: what are the "createrestorepoint" arguments, ie, arg2 and arg3
Q3:
in VBA what would be the VBEditor DLL reference be ?
. (I use VBA for testing only and if I can install the DLL reference,
. ( maybe there will some function/method help for "createrestorepoint"
Q4: Am I in the appropriate forum ?


My System SpecsSystem Spec
.
10 Apr 2013   #2
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello GrayGhost,

You might like these better for creating a restore point instead.

System Restore Point Shortcut

Hope this helps,
Shawn
My System SpecsSystem Spec
10 Apr 2013   #3
bawldiggle

XP/7x32 & x64/8x64/8.1x64
 
 
Restore Point shortcut

Quote:
You might like these better for creating a restore point instead.
Like it? -- love it! Thank you Shawn
VBS file runs as portable on thumb-drive too -- I was concerned about system root.

No doubt about it -- you are "the" man

Just saved me some time, and brain cells writing and testing.
My System SpecsSystem Spec
.

10 Apr 2013   #4
boohbah

Microsoft Windows 7 Home Premium 64-bit 7600
 
 

in addition have a look at this one here,

System Restore Point : Create at System Startup

out of interest shawn, is it possible to add create a restore point to desktop right click context menu?
My System SpecsSystem Spec
10 Apr 2013   #5
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

You're most welcome GrayGhost.

Sure thing Julian. I'll whip up a tutorial for that today with the same options, and post back with a link to it when finished.
My System SpecsSystem Spec
10 Apr 2013   #6
bawldiggle

XP/7x32 & x64/8x64/8.1x64
 
 
How do I determine "Disk Space Usage" ?

Quote   Quote: Originally Posted by boohbah View Post
in addition have a look at this one here,
System Restore Point : Create at System Startup
I am new to Restore-points by 3 days

My laptop's "Disk Space Usage" setting was zero.
I have opted for 10% allocation based on no knowledge of my own.
If I create a daily restore-point (or boot based) I guess the disk-space will be used up rather quickly, which could exterminate critical "foundation" RPs as the allocated space is exceeded.
I know I can remove individual RPs using CCleaner, but I have to remember to do it
I back up data daily, and with little or no system/program changes I do not see the merit in daily RPs just "because we do".

I have now , however, instigated a protocol of creating a RP before installing/uninstalling/updating, OS and programs.

Q: What is a rule of thumb for either proportional or absolute "Disk Space Usage" setting ?
-------
PC SPECS:
Computer Type:= Laptop
Manufacturer:= Toshiba Satellite C665
OS:= Windows 7 Home Premium, sp1 (Build 7601)
CPU:= Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
Motherboard:= TOSHIBA Portable PC
Memory:= 2,806 MB
Graphics:= NVIDIA GeForce 315M *
Sound Card:= Speakers (Conexant SmartAudio H |
Monitors:= x1, Generic PnP
Screen Resolution:= 1366 X 768 - 32 bit
Hard Drives:= C: 585.4GB (used 32GB)
PSU:=
Cooling:= default fan
Keyboard:= default + Logitech K260
Mouse:= default + Logitech M210
Internet Speed:= ADSL2
Antivirus:= Bitdefender Internet Security 2013
Browser:= PaleMoon, Firefox 20.0, IE-9
Others:= USB Safely Remove, Metapad, ClipX,
7Zip, Classic Shell Start, Explorer++, FileSearchEX, KeyboardLEDS, CapsLock,
MalwareBytes, MyDefrag, PostBox,
My System SpecsSystem Spec
10 Apr 2013   #7
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

GrayGhost,

With restore points, you have "Current usage" and what you set "Max usage" for what "Current usage" can get up to before automatically deleting older restore points to make room for a new one.

There's no set rule for what to set "Max usage" to other than how much you want to be able keep more restore points saved. A restore point is very roughly around 1.35GB in size to help figure about how much "Max usage" to set for how many restore points to keep.

System Protection - Change Disk Space Usage
My System SpecsSystem Spec
10 Apr 2013   #8
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by boohbah View Post
in addition have a look at this one here,

System Restore Point : Create at System Startup

out of interest shawn, is it possible to add create a restore point to desktop right click context menu?
All finished Julian.

Restore Point - Add "Create Restore Point" to Context Menu in Windows
My System SpecsSystem Spec
Reply

 VBScript to create "Restore Point" in Win7




Thread Tools




Similar help and support threads
Thread Forum
Restore Point - Add "Create Restore Point" to Context Menu in Windows
How to Add "Create Restore Point" to Context Menu in XP, Vista, Windows 7, and Windows 8 This tutorial will show you how to add "Create Restore Point" to the desktop and folder window context menu in XP, Vista, Windows 7, and Windows 8. You must be signed in as an administrator to be able to...
Tutorials
CScript Error: Can't find script engine "VBScript" -alternate solution
I just came across this error in troubleshooting an MGADiag report to solve a non-genuine message on a Vista computer. It took me a large amount of searching to find the right answer to it - so I thought I'd post my solution here in the hope that it gets a little easier to find for others in the...
Windows Updates & Activation
Create "Restore Point" -- system protection is OFF ?
I am trying to create my first ever "restore point". Start > Settings > Control Panel > System (icon) > System (window) > System protection (item) > System-Properties (dlg) ----- System Properties (dialog) > System Protection (tab) There are two Available drives in the "Protection Settings"...
Backup and Restore
Getting CScript Error: Can't find script engine "VBScript".
I don't remember when was the first time I got this error... I think that was April '11... Here, to be precise: http://www.sevenforums.com/system-security/155615-rpc-virus-virus-2.html#post1334750 I must have spent my time trying to fix it...but got nothing... So, yesterday...I ran...
Windows Updates & Activation
Howto create a WebDAV "cloud disk" in my Win7 Enterprise Using IIS 7
Is it possible to create a WevDAV server in my windows 7 Enterprise SP1, using IIS 7.5? I have several devices (including iPAd with iOS 5) which need a WebDAV to interchange or save files in a (home) "cloud disk".
Network & Sharing
Can't create "System Restore Disk" ?
From Backup and Restore in Control panel...I get the errors in the jpg attached ? The drive is working and I can add and delete files at random to the D: drive. Currently I'm using regular CD's...not a DVD disk. Thanks....TR
Backup and Restore


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 08:08.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App