All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 8s
30 lines
1.0 KiB
Markdown
30 lines
1.0 KiB
Markdown
## 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.
|
|
|
|
```powershell
|
|
# Imaging Integrity Repair Tools
|
|
DISM /Online /Cleanup-Image /RestoreHealth
|
|
DISM /Online /Cleanup-Image /StartComponentCleanup
|
|
sfc /scannow
|
|
|
|
# Stop all Windows Update Services (In Order) to Unlock Underlying folders.
|
|
net stop usosvc
|
|
net stop wuauserv
|
|
net stop bits
|
|
net stop cryptsvc
|
|
|
|
# Purge the Windows Update Cache Folders and Recreate Them
|
|
rd /s /q %windir%\SoftwareDistribution
|
|
rd /s /q %windir%\System32\catroot2
|
|
mkdir %windir%\SoftwareDistribution
|
|
mkdir %windir%\System32\catroot2
|
|
|
|
# Start all Windows Update Servers (In Order)
|
|
net start cryptsvc
|
|
net start bits
|
|
net start wuauserv
|
|
net start usosvc
|
|
```
|
|
|
|
!!! info "Attempt Windows Updates"
|
|
At this point, you can try re-running Windows Updates and seeing if the device makes it past the errors and installs the updates successfully or not. If not, **panic**. |