neuropass Posted June 25, 2009 Posted June 25, 2009 (edited) hello guys, i'm trying to disable the system restore with a bat file..Does anybody know how to do it..?thx in advance.. Edited June 25, 2009 by neuropass
iamtheky Posted June 25, 2009 Posted June 25, 2009 REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /t REG_DWORD /v "DisableSR" /d 1 /f
neuropass Posted June 25, 2009 Author Posted June 25, 2009 thanks a lot for your reply but it doesn't work..
iamtheky Posted June 25, 2009 Posted June 25, 2009 (edited) *I did fail to notice this was under Vista, but in XP I am fairly certain that setting 'disablesr' to 1 = disable system restore. And that command works fine for toggling the setting between 1 and 0 on my box.were you running from an elevated command prompt? can you supply the error(s) the command returned? Edited June 25, 2009 by iamtheky
neuropass Posted June 25, 2009 Author Posted June 25, 2009 sorry i didn't explain my self.. i ran it from a bat file with administrative privileges. and everything went fine, no error whatsoever. but the system restore was still on.. i managed to find a vbs script though. and it doeas the job... thanks a lot for your help i really appreciate it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now