Disable System Restore in W7
I would like for all my Windows 7 System Restore options to be diabled when I install from the K2000.
Does anyone have a slick way to do this?
Please advise...
Bob Frakes
Does anyone have a slick way to do this?
Please advise...
Bob Frakes
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
dchristian
12 years ago
Posted by:
bfrakes
12 years ago
Posted by:
dchristian
12 years ago
You are correct sir that is the script for Win XP.
Try this one for win 7.
Save it as a .VBS.
Then upload it to the K2000 as a postinstall task.
The command line to run will be
cscript {name_of_file_here}.vbs
Let me know if that works for you.
Try this one for win 7.
Save it as a .VBS.
Then upload it to the K2000 as a postinstall task.
The command line to run will be
cscript {name_of_file_here}.vbs
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients"
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore"
strValueName = "RPSessionInterval"
dwValue = 0
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
Let me know if that works for you.

so that the conversation will remain readable.