Startup script for Windows Recovery Environment?

Posted by Recovery on Super User See other posts from Super User or by Recovery
Published on 2012-10-13T02:01:28Z Indexed on 2012/10/13 3:40 UTC
Read the original article Hit count: 186

Filed under:
|

I'm trying to automate the Windows 7 Recovery Environment. I want the computer to be able to boot into the Recovery Environment, automatically run some commands, and then restart back into Windows.

The reason for this is that I want to use the Recovery Environment to edit some system files that are not writable while Windows is running. (Of course, this could be done using GRUB and Linux, but it would be even better if one could use the built-in Windows Recovery Environment and avoid the need to install a separate bootloader and OS.)

So far, I've found out how to tell Windows 7 to reboot into the recovery environment:

reagentc /boottore
shutdown /r /t 0

But once the Recovery Environment loads, it opens a dialog that requires user input to continue. Instead of that dialog, I would like to be able to specify a script to run instead.

Any ideas on how to accomplish this would be appreciated. Thanks!

© Super User or respective owner

Related posts about windows-7

Related posts about Windows