Welcome, Guest. Please login or register. Did you miss your activation email?
Britec Computer Tech Help Support Forums  « Microsoft Support  « Windows XP Support « Batch File to create System Restore Points
Pages: [1]
  Print  
Author Topic: Batch File to create System Restore Points  (Read 816 times)
davedudeit
Sr. Member
****
Posts: 376



View Profile
« on: July 15, 2010, 05:07:49 PM »

Hiya i have 4 computers with win XP on them.
i want to create a restore point and go to it every time i boot up with out press in  buttons or sticking disks in.
any ideas on a batch file of some sort.

« Last Edit: July 16, 2010, 01:50:40 AM by Britec » Logged
Britec
Administrator
Hero Member
*****
Posts: 3339



View Profile
« Reply #1 on: July 16, 2010, 02:11:43 AM »

Just set a Scheduled Tasks at what ever time you want.

Paste the code to a Notepad file and save as Sys_Restore.vbs

Code:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Restore Point", 0, 100)

you can add the USERNAME next to Restore Point if you wish and save it to any directory you want
Logged



davedudeit
Sr. Member
****
Posts: 376



View Profile
« Reply #2 on: July 16, 2010, 03:51:47 PM »

Just set a Scheduled Tasks at what ever time you want.

Paste the code to a Notepad file and save as Sys_Restore.vbs

Code:
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Restore Point", 0, 100)

you can add the USERNAME next to Restore Point if you wish and save it to any directory you want
sorry to be the noob agen but say if the user was Morris
woud it look like this.

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Restore Point"Morris, 0, 100)
Logged
Britec
Administrator
Hero Member
*****
Posts: 3339



View Profile
« Reply #3 on: July 17, 2010, 02:15:23 AM »

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Morris Restore Point", 0, 100)
Logged



davedudeit
Sr. Member
****
Posts: 376



View Profile
« Reply #4 on: July 17, 2010, 03:14:52 PM »

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
MYRP = IRP.createrestorepoint ("Morris Restore Point", 0, 100)


ahhh thanks bud .
Logged
Pages: [1]
  Print  
 
Jump to: