The Windows 10 2004 update has been failing to install on my PC for the last few months (it tries to auto install every few weeks). I ran it manually and saw that it stops around 77% done and then does a restore of the prior OS version
I remembered I set up a Junction for the Windows Public folder a few years ago, and I ALWAYS have this issue on major Windows updates. Basically, I have a smaller C: drive and a huge D: drive. In each user account, Windows gives you the option of putting the users data files on a different drive than the System drive. No so for the "Public" folder. If you have set up a Junction for a Windows system folder (like Public), you much remove the Junction first and then run the install:
- To Remove Junction
(from command prompt administrative: WIN-key "cmd" then Ctrl+Shift+Enter to run it with admin privileges).....you won't lose the files on the target of the Junction. This just gets rid of the Junction.
cd %SYSTEMDRIVE%\Users
rmdir public
- Reboot the PC
- Run the Windows Updater from: https://www.microsoft.com/en-us/software-download/windows10%20
- After the upgrade succeeds (hopefully), recreate the Junction. You need to delete the new public folder that the Windows 10 upgrade created on the System drive and create a junction in its place. For this, boot into Safe Mode as an administrator and delete the public contents and folder using Cmd as an administrator. To remove the Public folder:
rmdir /s /q %SYSTEMDRIVE%\Users\Public
- Then recreate the Junction back to your actual Public folder on the secondary drive, from the Cmd app:
mklink /J %SYSTEMDRIVE%\Users\Public D:\Users\Public
- Then reboot
This may not solve everyone's upgrade issue that is experiencing these upgrade symptoms posted in this thread, but there are a lot of PC's out there with dual drives on which users set up Junctions to move large system folders to a larger secondary drive.