WSUS: Script to Force the Update Detection from Automatic Update Client (WUA) for updates on WSUS Server
Copy and Paste the code below into a text file and name it AUForceUpdate.cmd
==============================================
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv) Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause
==============================================
Additional tools
gpupdate /force
Copy and Paste the code below into a text file and name it AUForceUpdate.cmd
==============================================
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv) Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause
==============================================
Additional tools
gpupdate /force
wuauclt
/resetauthorization /reportnow
wuauclt
/detectnow
(New-Object
-ComObject Microsoft.Update.AutoUpdate).DetectNow()
=UsoClient
instead of wuauclt commands on new Windows=
UsoClient
StartScan
UsoClient
StartDownload
UsoClient
StartInstall
UsoClient
ScanInstallWait :Combined Scan Download Install
UsoClient
RefreshSettings :Refresh Settings if any changes were made
UsoClient
StartInteractiveScan :May ask for user input and/or open dialogues to show
progress or report errors
UsoClient
RestartDevice :Restart device to finish installation of updates
UsoClient
ResumeUpdate :Resume Update Installation On Boot
Комментариев нет:
Отправить комментарий