1 comment

  • Avatar

    There is no built-in action for performing it, but you can use VBScript to create a restore point.

    The example below creates a random point with project's <fullName> as name of the restore point:

        <text>Set SRP = GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")
        Result = SRP.createrestorepoint ("${project.fullName}", 0, 100)
        If Result = 0 Then
            Wscript.Exit 0
            Wscript.Exit 1
        End If
        <programArguments>/NOLOGO "createrestore.vbs"</programArguments>

    More information on using SystemRestore, its attributes and methods can be found on MSDN.

Please sign in to leave a comment.