WSUS - How to force Windows Updates from the command line

September 26th, 2008
Manipulate Automatic Updates Behavior Using Command-line Options

There are two documented command-line options used for manipulating Automatic Updates behavior. These options are meant to be run from a command prompt. They are helpful for testing and troubleshooting client computers. For comprehensive troubleshooting information for problems with both the WSUS server and client computers, see “Microsoft Windows Server Update Services Operations Guide.”

Detectnow Option

Because waiting for detection to start can be a time-consuming process, an option has been added to allow you to initiate detection right away. On one of the computers with the new Automatic Update client installed, run the following command at the command prompt:

wuauclt.exe /detectnow

Resetauthorization Option

WSUS uses a cookie on client computers to store various types of information, including computer group membership when client-side targeting is used. By default this cookie expires an hour after WSUS creates it. If you are using client-side targeting and change group membership, use this option in combination with detectnow to expire the cookie, initiate detection, and have WSUS update computer group membership.

Note that when combining parameters, you can use them only in the order specified as follows:

wuauclt.exe /resetauthorization /detectnow



WSUS - How to speed up WSUS downloads

September 25th, 2008

By default WSUS will use BITS to monitor and throttle traffic on the ethernet card. There are occasions where you want to download the updates as fast as possible, such as after a first install or a rebuild of your WSUS server. All you need to do is download the Server Diagnostics Tool available here: http://technet.microsoft.com/en-us/wsus/bb466192.aspx

Once installed open a command prompt and navigate to the WsusDebugTool.exe program and enter:

c:\WsusDebugTool.exe /tool:setforegrounddownload

When your updates have all downloaded (could take a few days) enter the following to reset BITS back to throttle mode:

WsusDebugTool.exe /tool:resetforegrounddownload