如果出现无法打开apps或者universal app长期hang在splash screen的话
,此法可解决:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)AppXManifest.xml"}
I got exactly the same problem and here's how I fixed it. Everything was done from desktop.
1- Create a folder on desktop: mount
2- Copy install.wim to desktop. (used the ISO downloaded from techbench)
Open Admin Command prompt, copy/paste each line and run:
- Dism /mount-wim /wimFile:%USERPROFILE%Desktopinstall.wim /index:1 /MountDir:%USERPROFILE%Desktopmount
- Dism /Online /Cleanup-Image /CheckHealth
- Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%Desktopmountwindows /LimitAccess
- Dism /unmount-wim /Mountdir:%USERPROFILE%Desktopmount /discard
- re-run: sfc /scannow