I\'m looking for a way to create a system restore point with the current date and time by pressing a button. I\'ve tried searching the web for a simple way to do this but I
var restPoint = GetObject(@"winmgmts:\\.\root\default:Systemrestore"); if(restPoint!=null) { if(restPoint.CreateRestorePoint("", 0, 100) == 0) { //do something } else { //do something } }