Windows 8 and 8.1 Forums


Creating a Restore Point via Task Manager.....

  1. #21


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Can't read it the error message Try using snipping tool to just take a picture of the window you want rather than the whole screen another time.

    It looks like though you didn't open Powershell as administrator. You need to right click and select "Run as Administrator".

    Don't worry we will get the solution eventually...
    Attached Thumbnails Attached Thumbnails Untitled.png  

      My System SpecsSystem Spec

  2. #22


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    Click image for larger version

    well Adam,

    it is not because i took a PRTSCRN of the full screen, even on my 32 inch i cannot read the text

    I took a PRTSCRN, put it in Paint and used the magnifier, hopefully you can see it know. Not too big, otherwise we get the same problem

    Jeff
      My System SpecsSystem Spec

  3. #23


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Do try the snipping tool - you can just take a picture of the specific window and save it. No need for paint. Anyway this is just about readable.

    You have 3 within 3 minutes yesterday at about 18:30 (numbers 73,74,75) so the script is working.

    Question is does it work if you stop the task and then run it again? I don't mean click on the vbs script I mean stop and then run the task from within task scheduler.

    Try to do this, wait a couple of minutes and then look in powershell to see if the restore point is made.
      My System SpecsSystem Spec

  4. #24


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    ok Adam,

    will let it run by clock and check it out.

    I see indeed this time the 3 saves in the Recovery menu.

    Get back to you later

    thanks

    Jeff
      My System SpecsSystem Spec

  5. #25


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Just a thought, if the task is not ending after it has made the restore point we need to end it in task scheduler (Stop the task if it runs longer than: 1 hour)and also to make extra safe if a second instance is invoked then end the previous (Stop the existing instance). This should help if your PC is turned off at the scheduled time and also if the task is still running on the second day..

    I think it will take a few days to make sure it is running right.

    Good luck.
    Attached Thumbnails Attached Thumbnails Capture.PNG  
      My System SpecsSystem Spec

  6. #26


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    Well Adam i had to end it myself, even if "stop after 1 hour" was clicked. (I Always put in 1 hour for every program that runs)

    No new restore point in the Recovery menu.

    in the GetRestorePoint no new files.

    have to leave right now, be back on Thursday 16h, so for you probably 10AM.


    I say this so you will not think i am not interested when i do not answer.


    thanks

    Jeff
      My System SpecsSystem Spec

  7. #27


    Posts : 1,875
    Windows 10 Pro Prieview x64


    I'll test it with task scheduler. Something must be wrong with the set up if the script works. I'll upload the task scheduler exported xml if it works in a day or two.
      My System SpecsSystem Spec

  8. #28


    Posts : 22,581
    64-bit Windows 10


    Hello Jeff,

    If you have not already, double check with Method Two in the tutorial below to see if it may help.

    System Restore Point : Create at System Startup - Windows 7 Help Forums
      My System SpecsSystem Spec

  9. #29


    Posts : 1,875
    Windows 10 Pro Prieview x64


    @Brink the original script didn't work in Windows 8 - we are testing with a new one based on another of your tutorials and it works. I already put the updated script in the comments in 7F tutorial. Something is up with Jeffs Task Scheduler entry that is all.

    @Jeff I have tested with the task scheduler set-up below and it works fine. Please compare your task scheduler entry as we found the script is good. Perhaps you didn't have the script set as Configure for Windows 8.1 - I'm not sure what setting exactly.

    Alternatively you could copy this into notepad and save as RestorePoint.xml and import it into task scheduler. You will only need to change the path of the vbs file and the scheduled time which I have set to 10:20.

    This is the task scheduler xml
    Code:
    <?xml version="1.0" encoding="UTF-16"?>
    <Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.4"><RegistrationInfo><Date>2014-09-09T10:16:25.3655075</Date><Author>WINDOWS_MACBOOK\adam</Author><Description>Create Restore Point</Description></RegistrationInfo><Triggers><CalendarTrigger><StartBoundary>2014-09-09T10:20:00</StartBoundary><ExecutionTimeLimit>PT30M</ExecutionTimeLimit><Enabled>true</Enabled><ScheduleByDay><DaysInterval>1</DaysInterval></ScheduleByDay></CalendarTrigger></Triggers>
    <Principals>
    <Principal id="Author"><UserId>WINDOWS_MACBOOK\adam</UserId><LogonType>InteractiveToken</LogonType><RunLevel>HighestAvailable</RunLevel></Principal></Principals><Settings><MultipleInstancesPolicy>StopExisting</MultipleInstancesPolicy><DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries><StopIfGoingOnBatteries>false</StopIfGoingOnBatteries><AllowHardTerminate>true</AllowHardTerminate><StartWhenAvailable>false</StartWhenAvailable><RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable><IdleSettings><StopOnIdleEnd>true</StopOnIdleEnd><RestartOnIdle>false</RestartOnIdle></IdleSettings><AllowStartOnDemand>true</AllowStartOnDemand><Enabled>true</Enabled><Hidden>false</Hidden><RunOnlyIfIdle>false</RunOnlyIfIdle><DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession><UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine><WakeToRun>false</WakeToRun><ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
    <Priority>7</Priority></Settings><Actions Context="Author"><Exec><Command>C:\Users\adam\Downloads\Instant_Restore_Point.vbs</Command></Exec></Actions></Task>
    and this is the updated Instant-Restore_Point.vbs again
    Code:
    Function GetOS 
     Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & ".\root\cimv2")
     Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
     For Each objOS in colOS
     If instr(objOS.Caption, "Windows 8") Then
     GetOS = "Windows 8"
     elseIf instr(objOS.Caption, "Windows 7") Then
     GetOS = "Windows 7" 
     elseIf instr(objOS.Caption, "Vista") Then
     GetOS = "Windows Vista"
     elseIf instr(objOS.Caption, "Windows XP") Then
     GetOS = "Windows XP"
     End If
     Next
     End Function
    
    If GetOS = "Windows XP" Then
     CreateSRP
     End If
    
    If GetOS = "Windows Vista" Or GetOS = "Windows 7" Then
     If WScript.Arguments.length =0 Then
     Set objShell = CreateObject("Shell.Application")
     objShell.ShellExecute "wscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " Run", , "runas", 1
     Else
     CreateSRP
     End If
     End If
    
    If GetOS = "Windows 8" Then
     If WScript.Arguments.length =0 Then
     Set objShell = CreateObject("Shell.Application")
     objShell.ShellExecute "wscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " Run", , "runas", 1 
     Else 
     const HKEY_LOCAL_MACHINE = &H80000002
     strComputer = "."
     Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
     strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore"
     strValueName = "SystemRestorePointCreationFrequency"
     oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,0 
     CreateSRP 
     End If
     End If
    
    Sub CreateSRP
     Set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
     sDesc = "Scheduled Restore Point"
     sOut = SRP.createrestorepoint (sDesc, 0, 100)
     If sOut <> 0 Then
     WScript.echo "Error " & sOut & ": Unable to create Restore Point."
     End If
     End Sub
    Attached Thumbnails Attached Thumbnails Capture1.PNG   Capture2.PNG  
      My System SpecsSystem Spec

  10. #30


    Posts : 22,581
    64-bit Windows 10


    The download in METHOD TWO has been updated since then. If you haven't already, please test it to see how it may work now for you.
      My System SpecsSystem Spec

Page 3 of 5 FirstFirst 12345 LastLast
Creating a Restore Point via Task Manager.....
Related Threads
System restore not creating restore point in Performance & Maintenance
I went into Task Scheduler and set System Restore to create a restore point every day at 12:01am. Under Conditions I cleared all the check boxes because I want SR to run regardless of whether computer is idle or not. I have been watching this for about 1 week and so far it's not created a single...
Hello! I have a virus on my laptop computer that was transmitted through a flash stick from a friends laptop. the virus is all about recreating two folders, one with my windows user name and the other is new folder, there's also a script running the task manager.
As my machine doesn't support SLAT in HyperV I am using VMlite XP mode to run some 16 bit programs I need. Very occaisionally VMlite hangs on close after it has saved state or shutdown the guest machine. I go to task manager and click end task on the Workstation GUI and it closes but very...
Bluetooth is giving me this error: "Windows has stopped this device because it has reported problems. (Code 43)" when I go check it through the Device Manager. The drivers are updated and I have already uninstalled and reinstalled to no avail. My laptop can still connect and use Wifi without...
I've added task manager to my scheduled tasks at logon. Everywhere I google, they say to put the /min or -minimized arguments in it to launch it minimized, except neither option works for me. Task Manager launches, but just sits there on my desktop. Is there a new argument for minimized in...
Task Manager delete old restore point in Performance & Maintenance
Considering the issue with Win8 restore points getting deleted, I decided to use Task Manager to create a new one weekly. The problem is that if I do not boot into another partition or manually delete the old restore point, they are going to pile up. Is there a way in Task Manager to delete the old...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook