Home > Uncategorized > Script to reset system restore point (XP)

Script to reset system restore point (XP)

Don’t ask why 🙂
Can’t believe how easy it is in XP. Microsoft has securty issues!

$sEBuffer = “.”
$objwmiservice = ObjGet(“winmgmts:\\” & $sEBuffer & “\root\default”)
$obj_item = $objwmiservice.Get(“SystemRestore”)
$err = $obj_item.Disable(“”)
$err = $obj_item.Enable(“”)

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s