Posted On November 19, 2021

How To Disable Startup Automatic Repair

kimconnect 0 comments
blog.KimConnect.com >> Windows >> How To Disable Startup Automatic Repair
Problem:

Sometimes, a certain virtual machine would not boot correctly when it’s being moved between Hyper-V hosts. An error such as this would result

Resolution:

Addressing the root cause of unplanned reboots is beyond the scope of this blog. The following command would ensure that those guest VMs would not load automatic repair upon abrupt shutdowns.

write-host "Disabling Automatic Startup Repair..."
$null=cmd.exe /c "bcdedit /set {default} recoveryenabled No"
$null=cmd.exe /c "bcdedit /set {default} bootstatuspolicy ignoreallfailures"
 
Note: command cannot be invoked in PowerShell directly; hence the cmd.exe call is necessary

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Change iTunes Backup Location of Storage In Windows

Make a directory junction after moving the backup storage location robocopy "C:\Users\%USERNAME%\AppData\Roaming\Apple Computer\MobileSync" "D:\iphone_backups" /E…

MAC: Setting Google DNS to Bypass ISP Slower Name Resolution

Open System Preferences > Network > DNS > click + (plus sign) under DNS Servers…

Experimental selinux Settings

enable or disable selinux: vim /etc/sysconfig/selinux   setsebool -P httpd_read_user_content 1   grep nginx /var/log/audit/audit.log |…