Estimated reading time: 2 minutes
I’m guessing you’re in the situation where Windows decided to “Update and Shutdown/Restart”, but when your system comes back up, it continues to update and reboot over, and over, and over, and over.
Well, that’s typically caused by a corrupt Windows update or the VM isn’t saving it’s changes.
Here’s a way to stop your system from boot looping so you can dive into the OS and clear the Windows Update cache.
- Boot your system into Recovery Console by either booting from ISO or resetting your system during boot a few times (highly recommend taking a back up of your VM prior to using this method).
- Launch Command Prompt (cmd).
- Launch Registry Editor (regedit) from Command Prompt.
- Load the local Operating System’s SYSTEM Registry Hive.
- Highlight the HKEY_LOCAL_MACHINE key and select “File > Load Hive“.
- You can typically find the SYSTEM Hive at “D:\Windows\System32\config\SYSTEM“
- Name the Hive something like “TEMP“.
- Set the Trusted Installer and Automatic Updates Services to Disabled.
- “TEMP\ControlSet001\Services\TrustedInstaller” and “TEMP\ControlSet001\Services\wuauserv“
- Change the Value “Start” to “4“.
- Unload the Hive by highlighting TEMP and select “File > Unload Hive“.
- Exit Registry Editor (regedit).
- Reboot the system.
Your machine should now boot into Windows without trying to install Windows Updates. This will even work on a VM that isn’t saving changes (outside of setting the drive to non-persistent or using PVS).