Windows 8 and 8.1 Forums


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

  1. #11


    Posts : 1,875
    Windows 10 Pro Prieview x64


    Hi Jeff,

    Can you go to task scheduler (it is task scheduler btw not task manager), action tab and then Enable all tasks history. Then you will be able to see if the task was scheduled to start correctly going forward so we know if the problem is task scheduler or the program.

    Next go to your task, right click on it and select run. Then you can see if the program is working. You should then see it in the history like the screenshot below.

    In one of your screenprints above you have it set to run at 11:02 every day if I remember right. This is a bit odd - why not at logon? Note that unless you have told it to in the task definition it will not wake the computer to do this task and also (by default) will not run if you are on battery power. You might want to double check all of the task settings - post them here if you like.
    Attached Thumbnails Attached Thumbnails task scheduler.PNG  

      My System SpecsSystem Spec

  2. #12


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    hi Adam, yes Task Scheduler of course.

    Yesterday nothing runned. I did put in 11.02 hours to see if it worked while i was on the computer, but it did not start.

    Normally it is set aft 23h, so should run while there is no action..

    I never shut down, unless i have to, never logoff either.

    Well just let it run, and it runs alright, but never ends..........so i have to end it.

    Will look into it and get back.

    Thanks

    Jeff
      My System SpecsSystem Spec

  3. #13


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    Click image for larger version

    hi,

    included a PRTSCRN where you can see the history, also where the files are situated.

    but they do not show up in the Recovery, where they should be.

    Meanwhile the program started manually.....still running.

    Jeff
      My System SpecsSystem Spec

  4. #14


    Posts : 1,875
    Windows 10 Pro Prieview x64


    I get the same. If I call the program it creates the restore point, call it a second time it doesn't.

    I think the reason is this CreateRestorePoint method of the SystemRestore class (Windows)

    Starting in Windows 8
    Windows skips creating this new restore point if any restore points have been created in the last 24 hours. The CreateRestorePoint method returns S_OK.
    I will try to fix the script.
      My System SpecsSystem Spec

  5. #15


    Posts : 1,875
    Windows 10 Pro Prieview x64


    The script doesn't work with windows 8 so I have updated it. Please use this version instead - download Instant_Restore_Point.zip and extract the .vbs to wherever you saved the last version.

    FYI the script is based on the vbs from System Restore Point Shortcut (you need to take account of the
    SystemRestorePointCreationFrequency registry setting.) The only change is to remove pop-up boxes and hard code the description of the restore point as "Scheduled Restore Point".

    As you can see Get-ComputerRestorePoint shows restore points are generated correctly now without waiting a day.

    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 Capture.PNG  
    Creating a Restore Point via Task Manager..... Attached Files
      My System SpecsSystem Spec

  6. #16


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    ok Adam,

    did replace the older file with the new one at 12.03 my time. Program still keeps on running, nothing in the Recovery folder in Control Panel.


    included PRTSCRN where you can see the history.

    It is saved again in the previous mentionned folder, not showing in het RECOVERY FOLDER in Control Panel.

    So 2 problems, program keeps on running and save not in the right folder.

    Any idea?

    Click image for larger version
    thanks

    Jeff


    Click image for larger version
      My System SpecsSystem Spec

  7. #17


    Posts : 1,875
    Windows 10 Pro Prieview x64


    run the script direct (double click on it) and then (after waiting 5 minutes or so) go to elevated powershell and enter Get-ComputerRestorePoint

    Then we can see if it is task scheduler or script as it works for me...


    PS C:\Windows\system32> Get-ComputerRestorePoint
    CreationTime Description SequenceNumber EventType RestorePointType
    ------------ ----------- -------------- --------- ----------------
    9/6/2014 7:44:33 AM adhoc 22 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 8:35:54 AM Instant Restore Point 23 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 9:54:44 AM Manual Restore Point 24 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 10:02:59 AM Scheduled Restore Point 25 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 10:05:22 AM Scheduled Restore Point 26 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 10:14:42 AM Scheduled Restore Point 27 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 10:39:28 AM Scheduled Restore Point 28 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 10:48:44 AM Scheduled Restore Point 29 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 11:43:47 AM Scheduled Restore Point 30 BEGIN_SYSTEM_C... APPLICATION_INSTALL
    9/7/2014 1:16:23 PM Scheduled Restore Point 31 BEGIN_SYSTEM_C... APPLICATION_INSTALL

    PS C:\Windows\system32>

      My System SpecsSystem Spec

  8. #18


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    hi Adam,

    you lost me here.

    i double clicked ths program.....nothing happens......

    Tell me what i am doing wrong?

    You mention SYTEM32, but i am on 64 bit....

    Jeff
      My System SpecsSystem Spec

  9. #19


    Posts : 1,875
    Windows 10 Pro Prieview x64


    What the script does is creates a restore point irrespective of when the old one was made. The old script was not compatible with windows 8 and would only make one per day (or week depending what you read). When you double click on it it should run and create a restore point. You will not see it doing anything.

    Next start powershell as administrator. You will see a blue box like in post 15 with a prompt saying
    PS C:\Windows\system32>

    This system32 is nothing to do with 32 bit or 64 bit - it is just the path that the Administrator powershell opens by default.

    From there just type in Get-ComputerRestorePoint and it will show what restore points the computer thinks you have. Wait a few minutes as creating a restore point takes (on my PC) about 2 minutes.
      My System SpecsSystem Spec

  10. #20


    BELGIUM
    Posts : 503
    WINDOWS 8.1 x64


    hi Adam,

    included the error i get, but still if this would work, why do i not see it in the Recovery folder?

    thanks for your time, but i think i will not get there.

    Hope you can read this.....


    JeffClick image for larger version
      My System SpecsSystem Spec

Page 2 of 5 FirstFirst 1234 ... 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