Resetting Windows Update using CMD

Brief

Windows update now does cumulative updates, updating the OS only requires the latest download. This massively saves on download bandwidth for machines not connected to a WSUS server.

However when using RMM software sometimes the patch handling does not synchronise correctly, or asks for approval of older updates.

The Software Distribution folder is always best left alone, however under exceptional circumstances, it can be deleted or renamed. Files will automatically get downloaded for WU components. However you will loose windows update historyalthough now that updates are cumulative, all previous patches are included anyway!

Resetting Windows Update

Here is a quick and easy solution

  1. Run an eleveted cmd prompt
  2. Stop the windows update service
    net stop wuauserv
  3. Rename the Software Distribution folder
    rename c:\windows\SoftwareDistribution SoftwareDistributionOLD
  4. Start the windows update service
    net start wuauserv
  5. Force a check and update – Note this only works if auto updates are enabled
    wuauclt.exe /detectnow /updatenow

 

More info on the wuauclt command can be found:

http://ss64.com/nt/wuauclt.html

Advertisements

Author: Dan

IT Expert & System Administrator.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s