Run these one-liners in an Administrator PowerShell for automated, single-command execution.
sfc /scannow; DISM /Online /Cleanup-Image /CheckHealth; DISM /Online /Cleanup-Image /ScanHealth; DISM /Online /Cleanup-Image /RestoreHealth
Resets network stack, sets DNS to Quad9 (9.9.9.9) & Cloudflare (1.1.1.2), and disables IPv6 on all active physical adapters.
netsh winsock reset; netsh int ip reset; ipconfig /release; ipconfig /renew; ipconfig /flushdns; Get-NetAdapter | Where-Status -Eq "Up" | Set-DnsClientServerAddress -ServerAddresses ("9.9.9.9","1.1.1.2"); Get-NetAdapterBinding -ComponentID ms_tcpip6 | Disable-NetAdapterBinding
Stops update-related services, renames local update caches to force regeneration, and restarts services.
Stop-Service -Name wuauserv, bits, cryptsvc, msiserver -Force; Rename-Item -Path "$env:windir\SoftwareDistribution" -NewName "SoftwareDistribution.old" -Force -ErrorAction SilentlyContinue; Rename-Item -Path "$env:windir\System32\catroot2" -NewName "catroot2.old" -Force -ErrorAction SilentlyContinue; Start-Service -Name wuauserv, bits, cryptsvc, msiserver
Stops print spooler, purges stuck print queue documents, and restarts spooler service.
Stop-Service -Name Spooler -Force; Remove-Item -Path "$env:windir\System32\spool\PRINTERS\*" -Force -Recurse -ErrorAction SilentlyContinue; Start-Service -Name Spooler
Deploys a silent, self-elevating PowerShell script that automatically runs SFC and DISM background repairs on every logon/boot, logging results to %TEMP%\SilentBootRepair.log.
$d="$env:LOCALAPPDATA\SilentBootRepair"; mkdir $d -Force; @'
if(-not([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)){Start-Process powershell.exe "-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs;exit}$l="$env:TEMP\SilentBootRepair.log";"[{0}] Started" -f (Get-Date)|Out-File $l -Append;sfc /scannow|Out-File $l -Append;DISM /Online /Cleanup-Image /RestoreHealth|Out-File $l -Append;"[{0}] Done" -f (Get-Date)|Out-File $l -Append
'@|Out-File "$d\SilentBootRepair.ps1" -Force;(New-Object -ComObject WScript.Shell).CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\SilentBootRepair.lnk")|%{$_.TargetPath="powershell.exe";$_.Arguments="-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$d\SilentBootRepair.ps1`"";$_.Save()}
Run the following commands in an Administrator PowerShell or Command Prompt to scan and repair corrupted Windows system files and component stores.
Fixes corrupted or missing Windows system files.
sfc /scannow
Checks whether the Windows image has been flagged as corrupted.
DISM /Online /Cleanup-Image /CheckHealth
Scans the Windows image for component store corruption.
DISM /Online /Cleanup-Image /ScanHealth
Repairs the Windows image using Windows Update as the repair source.
DISM /Online /Cleanup-Image /RestoreHealth
Finds and installs outdated or missing hardware drivers.
Recommendation: Create a System Restore Point before updating drivers.
SDIO_auto.Not installed, Newer, Better matches.Not Installed.Show only best.Note: Restart your PC after completing all SFC and DISM operations.
Reset network adapters, disable IPv6 to avoid resolution conflicts, and configure fast, security-focused DNS servers.
Open PowerShell (Admin) or Command Prompt (Admin) and run:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ncpa.cpl, and press Enter.PowerShell Alternative (Admin):
Get-NetAdapterBinding -ComponentID ms_tcpip6 | Disable-NetAdapterBinding
In the network adapter Properties menu:
9.9.9.9 (Quad9 Malware Protection)1.1.1.2 (Cloudflare Security / Malware Blocking)PowerShell Alternative (Admin):
Get-NetAdapter | Where-Status -Eq "Up" | Set-DnsClientServerAddress -ServerAddresses ("9.9.9.9","1.1.1.2")
Simple dual-layer protection using built-in Windows Defender alongside Malwarebytes.
PowerShell Alternative (Admin):
Update-MpSignature; Start-MpScan -ScanType FullScan
Configure Brave for maximum speed, strong privacy, and zero clutter—optimized for non-technical users.
brave://settings/wallet.brave://settings/rewards and toggle Brave Rewards off.brave://settings/appearance and turn Off the Brave Wallet Button and Brave Rewards Button.brave://settings/shields.brave://settings/newTab.Skip the mandatory internet connection requirement during Windows initial setup (Out-Of-Box Experience).
oobe\bypassnro
Windows Update often fails with cryptic error codes (e.g., 0x80070002, 0x80240020). This section provides a step-by-step methodology to reset the local Windows Update cache.
To reset the cache, we must stop the Background Intelligent Transfer Service (BITS), Windows Update Service, Cryptographic Services, and Windows Installer (msiserver).
In Command Prompt (Admin) or PowerShell (Admin):
net stop wuauserv
net stop bits
net stop cryptsvc
net stop msiserver
Windows uses these folders to store update files and signatures. Renaming them forces Windows to recreate them, purging any corruption.
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
ren %systemroot%\System32\catroot2 catroot2.old
Restart the services stopped in Step 1.
net start wuauserv
net start bits
net start cryptsvc
net start msiserver
If errors persist, run the built-in Windows Update Troubleshooter:
When a printer refuses to print, or jobs are stuck in the print queue (unable to delete), resetting the print spooler and purging the local queue folder resolves the issue in 95% of cases.
Open Command Prompt (Admin) or PowerShell (Admin) and run:
net stop spooler
Delete all temporary files stored in the printer spool directory.
del /Q /F /S "%systemroot%\System32\Spool\Printers\*.*"
net start spooler
Slow system performance and low disk space are common client complaints. This section covers cleaning temp files, disabling hibernation (for SSD systems with low storage), and scanning for drive file-system errors.
Delete user and system temporary files using PowerShell:
Remove-Item -Path "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:windir\Temp\*" -Recurse -Force -ErrorAction SilentlyContinue
If the client is on a desktop or does not use hibernation, disabling hibernation deletes hiberfil.sys, freeing up gigabytes of disk space equal to ~75% of installed RAM.
Open Command Prompt (Admin) or PowerShell (Admin) and run:
powercfg /h off
(To re-enable later, run powercfg /h on)
Check file system metadata and repair disk corruption on the primary C: drive. This requires a restart.
chkdsk C: /f /r
Note: Type Y when prompted to schedule the volume to be checked next time the system restarts, then reboot.
Automatically running a file system check and component store repair on every logon ensures automatic recovery from sudden crashes or corruption, completely in the background.
To do this properly, we use a hidden script located in local user configuration and register a silent startup shortcut.
Create a folder and save the following PowerShell script to $env:LOCALAPPDATA\SilentBootRepair\SilentBootRepair.ps1:
# Self-elevate the script to Administrator (triggers UAC)
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Start-Process powershell.exe -ArgumentList "-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
}
$logFile = "$env:TEMP\SilentBootRepair.log"
"[{0}] Boot repair started." -f (Get-Date) | Out-File $logFile -Append
# Run SFC and DISM Repairs silently
sfc /scannow | Out-File $logFile -Append
DISM /Online /Cleanup-Image /RestoreHealth | Out-File $logFile -Append
"[{0}] Boot repair completed." -f (Get-Date) | Out-File $logFile -Append
shell:startupSince Windows opens .ps1 files in Notepad on startup by default, we register a silent shortcut .lnk in your Startup directory pointing to PowerShell.
Run this PowerShell command to create the startup link:
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\SilentBootRepair.lnk")
$Shortcut.TargetPath = "powershell.exe"
$Shortcut.Arguments = "-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$env:LOCALAPPDATA\SilentBootRepair\SilentBootRepair.ps1`""
$Shortcut.Save()
The repairs run silently. You can view the repair details and progress in the log file:
%TEMP%\SilentBootRepair.log, and press Enter.To completely remove the boot-time repairs:
Remove-Item -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\SilentBootRepair.lnk" -Force
Remove-Item -Path "$env:LOCALAPPDATA\SilentBootRepair" -Recurse -Force