System-Restore programatically
-
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
-
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
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
-
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
-
Is it not possible even if the restore point has has no system files (d:\, e:\ etc)? Regards, Krishnakumar
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
-
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
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