Script to force a Client machine to communicate its WSUS Server for updates

This VB script might help you in initiating the communication between WindowsUpdateAgent(Client) and WindowsUpdateServer(Server) for windows updates.

' ---------------START CODE---------------

strComputer = inputbox("Enter a computer name to run WUA detectnow","Invoke detectnow")

if strComputer = "" then wscript.quit
on error goto 0
Set autoUpdateClient = CreateObject("Microsoft.Update.AutoUpdate",strComputer)
AutoUpdateClient.detectnow()
wscript.echo "Client Communication initiated with WSUS Server."

' ----------------END CODE-----------------

Leave a Reply