Update operations/reference/powershell/general-purpose/fix-corrupted-windows-updates.md
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
## Purpose
|
||||
Sometimes when you try to run Windows Updates, you may run into issues where updates just fail to install for seemingly nebulous reasons. You can run the following commands (in order) to try to resolve the issue.
|
||||
|
||||
!!! info "Run Commands from (CMD) Commandline, not powershell.
|
||||
|
||||
```powershell
|
||||
# Imaging integrity Rrepair tools
|
||||
DISM /Online /Cleanup-Image /RestoreHealth
|
||||
DISM /Online /Cleanup-Image /StartComponentCleanup
|
||||
sfc /scannow
|
||||
DISM /Online /Cleanup-Image /StartComponentCleanup
|
||||
|
||||
# Stop all Windows Update services (in order) to unlock underlying files and folders.
|
||||
net stop usosvc
|
||||
net stop usosvc # usosvc may refuse to stop on some systems; failure is non-fatal and you can proceed
|
||||
net stop wuauserv
|
||||
net stop bits
|
||||
net stop cryptsvc
|
||||
|
||||
Reference in New Issue
Block a user