Can you run Windows Restore from the Command Line?
Our Buddy over @ Bauer-Power had an exciting time running system restore from the command line. Check it out.
I had a computer today that reacted a little funny to an install of McAfee Virus Scan. After the reboot it didn’t agree with McAfee’s OnAccess drivers. Long story short it would give me a BSOD at reboot. I tried Last Known Good, but then it would hang indefinitely. I tried to boot into safe mode (without networking), that was a no-go also, it too would just hang indefinitely. All I wanted to do was a simple system restore!!!
Never fear, Captain Command line is here! I rebooted into safe mode with command prompt. It booted right up. I logged in and like clockwork, got only the command prompt. I ran the following command:
The system restore GUI popped up and I was able to restore to before the install. Thanks Captain Command line.
[Originally Posted On Bauer-Power By El Di Pablo]
If you run into an access denied even though you are an admin trying to access system32:
El Di Pablo said…
Also, if you’re administrator, you can change the permissions from command line (Not from recovery console though). If you’re administrator, you can change the permission for the system volume information by running:
cacls “System Volume Information” /P Administrator:F system:F


August 30, 2007 - 3:10 pm
You know after trying this out since it isn’t 100% command line I was looking for a way, just for my own personal knowledge to see if this can be done 100% command line with no GUI. I found this article here explaining how to do a system restore from the recovery console. When I tried doing step number 3 (change directory in system~1) I got an access denied message, even though i was logged in as administrator. Anyone know of a better method, or how to get around the access denied thingy?
Click to Reply to This Comment.
August 30, 2007 - 3:22 pm
Wait…I figured it out. I checked the permissions on that hidden system folder. By default only the system account has access to that folder. I had to manually add the administrators group to it and give it full control.
LAME!
Click to Reply to This Comment.
August 30, 2007 - 3:36 pm
Also, if you’re administrator, you can change the permissions from command line (Not from recovery console though). If you’re administrator, you can change the permission for the system volume information by running:
cacls “System Volume Information” /P Administrator:F system:F
Click to Reply to This Comment.
August 30, 2007 - 3:46 pm
Great information! I will append the post.
Click to Reply to This Comment.