WSUS: Script to Force the Update Detection from Automatic Update Client (WUA) for updates on WSUS Server

SUMMARY

Windows Server Updates Service (WSUS) Script to Force the Update Detection from Automatic Update Client to check for updates on WSUS Server.
 

WSUS: Script to Force the Update Detection from Automatic Update Client for updates on WSUS Server

This script will force the Update Detection from Automatic Update Client to check 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
=======================================================================
 
More Information:
 
Quick AU Client Detection & Installation with Windows Server Updates Services, WSUS;
http://msmvps.com/athif/archive/2005/06/29/56200.aspx

This article is now available on http://support.microsoft.com/kb/555453

Published Wed, Sep 14 2005 17:26 by Mohammed Athif Khaleel
Filed under:

Comments

Saturday, April 08, 2006 7:21 AM by PatchAholic...The WSUS Blog!

# Rick Claus highlights AUForceUpdate.cmd

AUForceUpdate.cmd
Monday, May 15, 2006 9:13 AM by PatchAholic...The WSUS Blog!

# WUAUCLT /detectnow - VBS and GUI methods

WUAUCLT /detectnow - VBS and GUI methods
Wednesday, May 17, 2006 2:11 AM by PatchAholic...The WSUS Blog!

# WUAUCLT /detectnow - VBS and GUI methods

WUAUCLT /detectnow - VBS and GUI methods