Script to delete System Restore Points

Function to Delete Windows System Restore points.PowerShell wrapper around Win32 API call to SRRemoveRestorePoint (Srclient.dll). The Delete-ComputerRestorePoint  function deletes the System Restore Points that are passed as argument or via pipeline as a result of a call to Get-C

 
 
 
 
 
5 Star
(1)
3,390 times
Add to favorites
8/6/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Examples OR function has incorrect name
    3 Posts | Last post September 06, 2015
    • The example uses Delete-Delete-ComputerRestorePoints, but the function is called Delete-ComputerRestorePoint (the s is missing). To make the script run either change the function name or the command in the examples. 
      
    • Thanks Alex, I've updated the example code accordingly.
    • So I changed the function name to Delete-ComputerRestorePoints, but it still is not working. I am running powershell as Admin. Am I supposed to me piping additional commands at the powershell prompt to make this work? What am I missing? Thanks.
  • Might there be a script to recover damaged system restore points?
    2 Posts | Last post February 11, 2015
    • I was just wondering if a .ps1 script be available for restoring System Restore point files and information? if there is would you please provide information on how to obtain the file?
      
      Thanks in advance . . .
      Tom 
    • Hi Tom,
      
      there is a built-in CmdLet for this purpose. Restore-Computer (yes, the naming is not consistent) https://technet.microsoft.com/en-us/library/hh849845.aspx
      It requires a sequence number on the RestorePoint parameter which you can retrieve from Get-ComputerRestorePoint
  • The term 'Delete-ComputerRestorePoint' is not recognized as the name of a cmdlet
    2 Posts | Last post June 28, 2014
    • This script does not appear to be working on windows 7 64-bit. 
      
      + Get-ComputerRestorePoint | Delete-ComputerRestorePoint -WhatIf
      +                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : ObjectNotFound: (Delete-ComputerRestorePoint:String) [], CommandNotFoundException
          + FullyQualifiedErrorId : CommandNotFoundException
    • DOH.... never mind. I was initially understanding this differently and just looked at the powershell code. Now that I have downloaded the actual script, I see what is going on.
  • Working?
    1 Posts | Last post November 18, 2013
    • So I really would love this script to work. I downloaded it, ran it from powershell as Admin with no errors, but when I MANUALLY go to delete my restore points, that is when I free up all kinds of space on my hard drive. Not running the script. I don't understand how there are no errors and still not work correctly.