Thứ Hai, 21 tháng 3, 2016

How do I tell Windows 7 to never Launch Startup Repair

I have a Windows 7 (64-bit) virtual machine that I primarily remote desktop into. Sometimes on boot something goes wrong and it displays the following DOS screen:
                             Windows Error Recovery
Windows Failed to start. A recent hardware of software change might be the cause.

If Windows files have been damaged or configured incorrectly, Startup Repair can help diagnose and fix the problem. If power was interrupted during startup, choose Start Windows Normally.
(Use the arrow keys to highlight your choice.)

 * Launch Startup Repair (recommended)
 * Start Windows Normally
The default option is Launch Startup Repair (which happens automatically after 30 seconds). How can I set it so that this never happens, and it always tries to Start Windows Normally?
shareimprove this question

3 Answers


up vote16down voteaccepted
Do this command:
bcdedit /set {current} bootstatuspolicy ignoreallfailures
Similar is
bcdedit /set {default} bootstatuspolicy ignoreallfailures
They can be the same if you are booted into the default load, so default would equal current.
For more information, the relevant Google search is "disable Windows Error Recovery" (minus the quotes).
shareimprove this answer

A better solution would be to implement the following line for the BCDedit.
bcdedit /set {default} bootstatuspolicy ignoreshutdownfailures 
This way, only shutdown failures will be ignored and the system won't go in to recovery mode. Recovery mode will still be available when the machine fails to boot properly and encounters other errors.
shareimprove this answer

At the command prompt enter the following:
bcdedit /set {default} recoveryenabled No
This will disable Startup Repair from automatically booting when there is a problem.
However, beware:
You'll have to get back into Windows as Admin to re-enable it. Just change the No to Yes in the above command

Not sure what you're really asking me, but I do have an even cleaner solution:

In testing, we found that the command did not work properly with Windows 7 RTM....

But, through some pretty extensive testing today, we did figure out that it is still a bcdedit issue.

Here's how to do it, PROPERLY:

bcdedit /set {default} bootstatuspolicy ignoreallfailures

You can crash as often as you like and you will not be prompted for the Startup Repair.

To restore things to normal, simply issue the following command:

bcdedit /set {default} bootstatuspolicy displayallfailures

Again, either UAC must be turned off or you must run CMD as an Admin....

Boy, this was a tough one to crack! I'm getting too old for this!

Oh, and a bonus....this should work on all versions of Vista and Windows 7....Our tests were on Windows 7 32bit RTM.

Không có nhận xét nào:

Đăng nhận xét