1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Creation of System Restore Points

Discussion in 'Windows 7' started by chrisw, 2010/08/21.

  1. 2010/08/21
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    It's my understanding that Win7/64 SR points are created weekly if there have been no updates/installs/etc. Is there any way to make that daily, as it was in XP?
     
  2. 2010/08/21
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,889
    Likes Received:
    386

  3. to hide this advert.

  4. 2010/08/21
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    PeteC...........brilliant, I should have thought of that myself. Many thanks.
     
  5. 2010/08/21
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,889
    Likes Received:
    386
    You're welcome :)

    Please mark this thread as 'Resolved', see .....
     
  6. 2010/08/27
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    PeteC....no, the link you suggested doesn't work. Darn!! I have been able to create with the task scheduler a daily SR point at 11:30am, for ex. However, the point does not get placed on the list of points available to do an SR, so it's useless (ie, you can't select the point to start an SR because it's not there). [Googling suggests that this is a bug in Win 7 (ie, it's one week between SR points, like it or not).] Yes, I check "Show More Restore Points ".
     
    Last edited: 2010/08/27
  7. 2010/08/27
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Why would you want that anyway? SR takes up a lot of space, and a retore point will be made when installing Windows Updates and even some application installations (provided the application utilizes an installer that is System Restore compliant).
     
    Arie,
    #6
  8. 2010/08/27
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Arie..........Because a week is too long between points. Sure as heck, something will burp (that's not M$-blessed software) and I'll have only a week-old point to work with. I'd rather have more points a shorter distance back in time than the other way, esp since M$ seems to have streamlined the imaging and recovery process.

    Am I correct that you're telling me it can't be done daily?
     
  9. 2010/08/28
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Eh....

    1. System Restore should not be used as backup. It is not!

    2. How many changes you think are made to your Windows system that would be important enough for a restore point?

    I haven't looked very hard if there's a solution (I'm not convinced one would be needed). If someone else has an idea I'm sure they'll let you know ;)
     
    Arie,
    #8
  10. 2010/08/28
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Arie,

    1. I understand that. But SR has saved my bacon on several occasions.

    2. It's the unknown changes I worry about (stealth plug-ins for one). You get up in the morning and the PC has gone haywire. Get into SafeMode, do an SR from the day before's point, and you may be OK.
     
  11. 2010/08/29
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    I may have a solution, but have to do some testing.
     
  12. 2010/08/29
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    OK, I played around a bit & this is what I was able to do to solve this.

    Copy the code below in a text file, then rename it to SR.vbs:

    Code:
    '" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "
    'Create a Daily System Restore point
    '" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "
    If WScript.Arguments.Count = 0 Then
      Set oShell = CreateObject( "Shell.Application ")
      oShell.ShellExecute  "wscript.exe ", " "" " & WScript.ScriptFullName & " "" Run ", ,  "runas ", 1
    Else
      Set oWshShell = WScript.CreateObject( "WScript.Shell ")
      swinmgmts =  "winmgmts:\\.\root\default:Systemrestore "
      GetObject(swinmgmts).CreateRestorePoint  "Automatic Restore Point ", 0, 100
    End If
    Place this in your User folder.

    Next we'll create a task to run it:

    1. In Task Scheduler, click Create a Basic Task, give it a name (I named mine Auto System Restore)
    2. Click Next. Daily should already be checked as Task Trigger
    3. Click Next. You should adjust the starting time to your preferences
    4. Click Next. Start a program should be the default action
    5. Click Next. Under Program/script, browse to \Windows\System32 and select wscript.exe
    6. In the Add arguments box, enter the path to the SR.vbs script (in my case C:\Users\Arie\SR.vbs)
    7. Click Next. Check the box Open the Properties dialog for this task when I click Finish, then click Finish
    8. On the General tab, select Run whether user is logged on or not AND Run with highest privileges
    9. On the Settings tab, select Run this task as soon as possible after a scheduled start is missed
    10. Click OK. You'll be prompted for your password

    That should do it :)
     
  13. 2010/08/29
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Arie....aha! Very much appreciated. I'll get back to you in a day or so, the grandchildren arrive soon for a short visit.
     
  14. 2010/08/30
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Arie,

    One burp, but almost there, much appreciated. The problem seems to be Step 6. The path is incorrect (looks strange, and I get dialog message that it's bad):
    The Properties>Actions tab shows:

    C:\Windows\System32\wscript.exe C:\Users\Chris\SR.vbs

    The Program Script part looks right, it's that "Argument (optional)" that looks funny. Another "C "?
     
  15. 2010/08/30
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Update....when the program tries to run, I get "Cannot find script file C:\Users\Chris\SR.vbs "
     
  16. 2010/08/30
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    And I put SR.vbs in My Computer\Local Disk C\Users
     
  17. 2010/08/30
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    Open a command prompt & type cd %userprofile% press ENTER. Now what's shown at the command prompt?
     
  18. 2010/08/30
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Nothing...just another command prompt.

    [I assume there's a blank space between the cd and the %]
     
  19. 2010/08/30
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    Another complication: I just took a look at the Task Scheduler Summary....it shows two successful runs even tho I got a message during those runs that SR.vbs couldn't be found. And even if those points were successful, they never got put on the SR list.
     
  20. 2010/08/31
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    No, it'll show you the path to your user profile:
     

    Attached Files:

  21. 2010/08/31
    chrisw

    chrisw Inactive Thread Starter

    Joined:
    2004/05/28
    Messages:
    311
    Likes Received:
    0
    With no blank, get "File name, directory name or volume label syntax is incorrect "

    I went back and started over. Near the end (Settings) I clicked OK and got "One or more of the specified arguments are not valid ". Should there be a comma after wscript.exe?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.