Skip to content
 

Disable System Restore through WMI

If you are sure about what you are doing and you want to speed up the installation of multiple security patches or applications, you can use the following WMI command to disable Windows XP system restore.

on error resume next
set sr=GetObject(“winmgmts:\\.\root\default:SystemRestore”)
e=sr.disable(“”)

To turn on System Restore again, use the following command:

on error resume next
set sr=GetObject(“winmgmts:\\.\root\default:SystemRestore”)
e=sr.enable(“”)

Related posts:

  1. Getting your OS Restore DVD to work with large image files
  2. Mute Windows System Volume
  3. How to disable Office Ribbon Items using Group Policy
  4. Adding Games on Windows 7 Enterprise
  5. A GUI for Windows Server Core

Leave a Reply

Spam Protection by WP-SpamFree