Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Deleting XP System Restore points remotely

Posted on 2006-06-13
Medium Priority
Last Modified: 2008-02-01
Due to virus issues, we are going to try and push out a disable and delete of all system restore points and functionality over our network.  We have found a registry key that should be easy enough to implement via GPOs (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\DisableSR=1).  However, deleting the restore points themselves seems to be an issue, since just doing the regedit does not delete the prior points created.  The folder that the points reside in is restricted to SYSTEM access only (easy enough to implement in GPOs, since those authenticate as SYSTEM), however having an exact script to run is stumping us, as deleting the wrong thing could cause huge issues.

ANybody have experience with this problem?
Question by:Hyppy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

by:Tony Gimenez
ID: 16900194
The folder that the system restore points are located are C:\System Volume Information and enabling access is as simple as a batch/script file.

Well anyway.. doing this over the network would take some sort of remote administration program, and if you dont have one already here are two good ones.

Oh and by the way, if I remember correctly once that registry value is changed the restore points are deleted upon next system reboot. So if you want to reboot all your computers on the LAN use this:
(this is free, but with less functionality)
(and this is the ultimate best)

Expert Comment

ID: 16900231

To delete all the restore points on your computer, disable and re-enable system restore on the system. Click Start, Control Panel, and then the System icon. Click on the System Restore tab in the dialog box, select the Turn off System Restore check box, and click Apply. Clear the check box again to re-enable System Restore and then click OK
You can use WMI scripts for remote restore, so you could use them to delete points as is a link for any WMI questions you may have:
I hope this helps...Booda2us

Accepted Solution

ADExpert earned 2000 total points
ID: 16901165
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\default")
Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.Disable("")
errResults = objItem.Enable("")

Above mentioned is a vbscript which can be used to delete all local system restore points. You can change the "." in strComputer variable with the remote system name to perform the same operation on remote systems.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question