locked
Computer Restore Point in WIN PE 7 (rstrui.exe) RRS feed

  • Question

  • Hi,

    I'm trying to do the equivalent of "rstrui.exe /OFFLINE:C:\Windows" while in Win PE 7 ...

    rstrui.exe /OFFLINE:C:\Windows works fine and displays the restore point but i need to accomplish the same operation using WMI if possible?

    Harv

    • Moved by Ty Glander Tuesday, May 31, 2016 7:01 PM not related to MDT
    Tuesday, May 31, 2016 3:51 PM

Answers

All replies

  • Wednesday, June 1, 2016 2:33 AM
  • Hi hlawton,

    Please take a look at the article below and see if it would help in such situation:

    Create System Restore Point in Single-Click (using WMIC)

    rstrui.exe opens the system protection Interface, and also WMI option also works when the service is available.

    Running rstrui.exe /offline:C:\Windows on a running system would remind you that the command would only work on Windows Recovery Environment.

    So generally, I don't think creating system restore point would work under Win PE.

    By the way, there is no WinPE 7 available.

    https://msdn.microsoft.com/en-us/windows/hardware/commercialize/manufacture/desktop/whats-new-in-windows-pe-s14

    Regards


    Please mark the reply as an answer if you find it is helpful.

    If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Wednesday, June 1, 2016 2:48 AM
  • Hi,

    rstrui.exe /offline:C:\Windows is running in PE 7 ... i have all the services running that it needs ... 

    I'm trying to get code to not create a restore point, but to restore, a restore point ...

    This i can only get to work while in windows "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "%DATE%", 100, 7" (1st thing I tried a while back already)...

    I've been a windows developer for 30 years ... But not an expert in PE ... Only been using PE for a year or so ... this is for an project i've been working on for the last 6 months so I know rstrui.exe works so there has to be a way ... 

    regards,








    • Edited by hlawton Wednesday, June 1, 2016 2:34 PM
    Wednesday, June 1, 2016 2:24 PM
  • Yes, correct, no WinPE 7 available ...

    We just say WinPE7 - Shorthand for WIN PE 3.1 (based on win 7 code base)  ...

    Any ideas with this? ...

    I'm trying to get code to not create a restore point, but to restore, a restore point ...

    This i can only get to work while in windows "wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "%DATE%", 100, 7" (1st thing I tried a while back already)...

    I've been a windows developer for 30 years ... But not an expert in PE ... Only been using PE for a year or so ... this is for an project i've been working on for the last 6 months so I know rstrui.exe works so there has to be a way ... all the services required for rstrui.exe to run are fired up so i guess that's how i got it to work  ...

    bit more info ...

    Have had no luck getting anything to work besides rstrui.exe in PE 3.1 ... WMI no luck or powershell ...

    I know there has to be a way with some system calls/API's otherwise rstrui.exe /OFFLINE:C:\Windows would not work ...

    I've been writing C/C++/C# for as long as those MS languages have been available so I can write the code if I know the API calls ...  :(  




    • Edited by hlawton Friday, June 3, 2016 2:18 PM
    Thursday, June 2, 2016 8:09 PM
  • Well,

    If regarding the system calls, then we may consider take use of process explorer and process monitor to capture the command trace. Then take a look at the calls:

    https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx

    https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx

    Or you may consider ask at the developing forum:

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev

    Regards


    Please mark the reply as an answer if you find it is helpful.

    If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Monday, June 6, 2016 8:10 AM
  • Michael,

    That's the 1st thing i tried back a week ago or so ... I could see it call vss and the vssldr and i looked at the param's it passed but not enough info was exposed ...

    But i will try https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev

    So thanks so much for your input!

    Harv

    Monday, June 6, 2016 2:35 PM
  • You'r welcome.

    Regards


    Please mark the reply as an answer if you find it is helpful.

    If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Tuesday, June 7, 2016 8:46 AM