Sysprep or Feature Update Failure
After you successfully complete the 20H2 upgrade, performPerform the followingbelow steps before you run sysprep
but start with only 1-5 and see if that does/or after any Windows 10 feature update or sysprep operation. After any feature update install completes, log into the computer, and then restart it one time. Run these steps as a post update cleanup task after a login and restart post feature update completion.
If not and post sysprep first boot or login fails still, look overThere are also some additional considerationsconsideration anditems to perform more from thereshould none of these steps help resolve the problem.
Log onto the machine as local administrator and confirm the login is successful
Go to Control Panel | System | Advanced system settings | Advanced tab | User Profiles section |
Settings
Highlight and delete all Account Unknown accounts and any other accounts one-by-one other than Default Profile and the local administrator account you are signed on as now.
Run the below elevated as administrator after you remove all unknown profiles from the system as specified in step #3. Ignore all command errors and just let it complete.
Get-AppXpackage -AllUsers | Remove-AppxPackage; Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" }; Get-AppxPackage -AllUsers | % { Add-AppxPackage -Register "$($_.InstallLocation)\appxmanifest.xml" -DisableDevelopmentMode };
Run the below PowerShell elevated and let it finish
PowerShell Elevated
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\*' | % { New-ItemProperty -Path $_.PSPath -Name StateFlags0001 -Value 2 -PropertyType DWord -Force }; Start-Process -FilePath CleanMgr.exe -ArgumentList '/sagerun:1'
Run the below
DISM.exe
processes admin elevated below one by one until they all complete.DISM.exe /online /Cleanup-Image /StartComponentCleanup DISM.exe /online /Cleanup-Image /SPSuperseded DISM.exe /online /cleanup-image /restorehealth