Powershell problem since 12/11 upgrade to 1709


  1. Posts : 272
    Windows 10
       #1

    Powershell problem since 12/11 upgrade to 1709


    I don't know if I described my problem correctly so I'll explain.

    I created a one-click shortcut for creating a restore point by using this:
    powershell.exe -NoExit -Command “& {Checkpoint-Computer -description “MyRestorePoint” -restorepointtype “Modify_Settings”}

    It worked beautifully and I found it to be one of the most helpful shortcuts I've ever used. After the upgrade to 1709, it will no longer work. I've thrown it away and tried to recreate it several times but it does not work.

    Can anyone help me fix this?

    I found this command and thought it was working.
    [COLOR=rgba(0, 0, 0, 0.85)]cmd.exe /k "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"[/COLOR]

    This is what shows in the command window after I click on the shortcut, but when I go to my Restore Points it was not entered there:
    Executing (SystemRestore)->CreateRestorePoint()
    Method execution successful.
    Out Parameters:
    instance of __PARAMETERS
    {
    ReturnValue = 0;
    };
    Last edited by Nikilet; 15 Dec 2017 at 06:32. Reason: new problem
      My Computers


  2. Posts : 61,831
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Nikilet, :)

    If you haven't already, be sure to change the SystemRestorePointCreationFrequency DWORD value to 0 in Registry Editor from the tutorial below to have system restore never skip creating a new restore point.

    Change System Restore Point Creation Frequency in Windows 10 Performance Maintenance Tutorials

    Afterwards, see if your PowerShell script will work for you now.
      My Computers


  3. Posts : 272
    Windows 10
    Thread Starter
       #3

    I followed those instructions but it didn't work.

    Using the command that starts with cmd.exe, I now get this message
    Invalid format.Hint: <paramlist> = <param> [, <paramlist>].

    Using the Powershell command I get
    The string is missing the terminator: ". + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
      My Computers


  4. Posts : 61,831
    64-bit Windows 11 Pro for Workstations
       #4

    Test using Option 2 below to see how that may work for you.

    Create System Restore Point in Windows 10 Performance Maintenance Tutorials
      My Computers


  5. Posts : 272
    Windows 10
    Thread Starter
       #5

    What parameter command should I use?
      My Computers


  6. Posts : 61,831
    64-bit Windows 11 Pro for Workstations
       #6

    You could use any one you like, but I like using "MODIFY_SETTINGS".
      My Computers


  7. Posts : 272
    Windows 10
    Thread Starter
       #7

    Yes, that worked. Apparently you can't create an actual shortcut but have to open the elevated command each time and paste in that command. But it does work.

    You've been so helpful and now I need some help with, I think, Windows Permissions. Can you help me with this?
      My Computers


  8. Posts : 61,831
    64-bit Windows 11 Pro for Workstations
       #8

    You could create a shortcut, but you'll need to remember to right click on the shortcut and "Run as administrator".

    If you like, here are some options below that you may find useful for creating a restore point. :)

    Add Create Restore Point Context Menu in Windows 10 Customization Tutorials

    Create System Restore Point shortcut in Windows 10 Customization Tutorials

    Sure, go ahead and create a new thread for your permissions issues. I'll be happy to take a look at it to see if I may be able to hlpe.
      My Computers


  9. Posts : 272
    Windows 10
    Thread Starter
       #9

    BTW, I added that command to my right-click menu and it worked great!
      My Computers


  10. Posts : 61,831
    64-bit Windows 11 Pro for Workstations
       #10

    Great news.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:51.
Find Us




Windows 10 Forums