Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. System-Restore programatically

System-Restore programatically

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocomwindows-adminhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I want to perform system restore programmatically either using VC++ or powershell. I have tried using '

    SystemRestore

    ' WMI class (https://msdn.microsoft.com/en-us/library/windows/desktop/aa378925(v=vs.85).aspx[^]) and

    Restore-Computer

    (https://technet.microsoft.com/en-us/library/hh849845.aspx[^]) But both triggers a reboot. Could you please help to find whether there is another option that restores the system without a reboot? Regards, Krishnakumartg

    Richard DeemingR D 2 Replies Last reply
    0
    • L Lost User

      Hi, I want to perform system restore programmatically either using VC++ or powershell. I have tried using '

      SystemRestore

      ' WMI class (https://msdn.microsoft.com/en-us/library/windows/desktop/aa378925(v=vs.85).aspx[^]) and

      Restore-Computer

      (https://technet.microsoft.com/en-us/library/hh849845.aspx[^]) But both triggers a reboot. Could you please help to find whether there is another option that restores the system without a reboot? Regards, Krishnakumartg

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Krishnakumartg wrote:

      restores the system without a reboot

      There is no such option. Restoring the system involves replacing system files, which will be in use. The only way to replace them is to reboot.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      L 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Krishnakumartg wrote:

        restores the system without a reboot

        There is no such option. Restoring the system involves replacing system files, which will be in use. The only way to replace them is to reboot.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Is it not possible even if the restore point has has no system files (d:\, e:\ etc)? Regards, Krishnakumar

        Richard DeemingR 1 Reply Last reply
        0
        • L Lost User

          Is it not possible even if the restore point has has no system files (d:\, e:\ etc)? Regards, Krishnakumar

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Unlikely. The files might still be in use, or the state of the system might depend on their contents.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          1 Reply Last reply
          0
          • L Lost User

            Hi, I want to perform system restore programmatically either using VC++ or powershell. I have tried using '

            SystemRestore

            ' WMI class (https://msdn.microsoft.com/en-us/library/windows/desktop/aa378925(v=vs.85).aspx[^]) and

            Restore-Computer

            (https://technet.microsoft.com/en-us/library/hh849845.aspx[^]) But both triggers a reboot. Could you please help to find whether there is another option that restores the system without a reboot? Regards, Krishnakumartg

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Krishnakumartg wrote:

            I want to perform system restore programmatically...

            Just out of curiosity, why?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups