Windows wuauclt

title: windows wuauclt - check for updates

wuauclt.exe /detectnow
wuauclt.exe /resetauthorization /detectnow
wuauclt.exe /reportnow
wuauclt.exe /updatnow

If this is on Windows 10, wuauclt /detectnow has been deprecated and no longer functions. you must use powershell to do this.

(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()

A more comprehensive Client side script is (Run from an admin CMD Prompt):

net stop bits
net stop wuauserv
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIDValidation /f
rd /s /q "C:\WINDOWS\SoftwareDistribution"
net start bits
net start wuauserv
wuauclt /resetauthorization /detectnow
PowerShell.exe (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()

Reference

上一篇:从线性连续存储开始,重新认识《数据结构》


下一篇:从线性连续存储开始,重新认识《数据结构》