Windows Fixes¶
System & Boot¶
Windows won't boot — repair BCD¶
Boot from Windows installation media, open Command Prompt:
DISM / SFC repair¶
Run in order — SFC first, then DISM if SFC fails to fix issues:
sfc /scannow
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
Windows Update stuck or failing¶
# Stop services, clear cache, restart
Stop-Service wuauserv, cryptSvc, bits, msiserver
Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.old
Rename-Item C:\Windows\System32\catroot2 catroot2.old
Start-Service wuauserv, cryptSvc, bits, msiserver
COM Surrogate / DLL host crash loop¶
Group Policy¶
Force GPO refresh¶
Check applied GPOs and last refresh time¶
Activation & Licensing¶
Check activation status¶
Re-activate or change product key¶
Profile & Registry¶
Fix corrupted user profile — create new and copy data¶
- Log in as a different admin account
- Back up
C:\Users\brokenuser - Delete the profile:
- Log in as the user once to generate a new profile, then copy data from the backup
Remove a stuck registry key¶
# Take ownership and delete
$key = "HKLM:\SOFTWARE\Stubborn\Key"
$acl = Get-Acl $key
$acl.SetOwner([System.Security.Principal.NTAccount]"Administrators")
Set-Acl $key $acl
Remove-Item $key -Force -Recurse
Networking¶
Reset TCP/IP stack¶
DNS client not resolving¶
Can't ping by hostname but can by IP¶
Check:
- DNS suffix search list:
ipconfig /all→ look for "DNS Suffix Search List" - Hosts file:
notepad C:\Windows\System32\drivers\etc\hosts - NetBIOS:
nbtstat -n