How do I get rid of WSUS?

More often than not, it is difficult to tell whether Windows Update failure is caused by WSUS itself or by Windows operating system. In that case we may need to remove WSUS settings from the client and restore Windows Update default settings in order to find out where the problem resides.

More often than not, it is difficult to tell whether Windows Update failure is caused by WSUS itself or by Windows operating system. In that case we may need to remove WSUS settings from the client and restore Windows Update default settings in order to find out where the problem resides.

Here are two methods to achieve this.

Remove WSUS Settings via PowerShell

  1. Click Start and open PowerShell as Administrator (Right Click > Run as Administrator)
  2. Stop the Windows Update Service by entering the command:
    Stop-Service -Name wuauserv
  3. Remove the Windows Update registry key by entering the command:
    Remove-Item HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate -Recurse
  4. Finally, restart Windows Update Service by running: Start-Service -Name wuauserv

Remove WSUS Settings Manually

  1. Click Start and type regedit into the start search box, then Right Click and Run as Administrator.
  2. Navigate to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\
  3. Right Click and Delete the registry key WindowsUpdate, then close the registry editor.
  4. Open the Services Console by entering services.msc in the start search box.
  5. Find and restart the Windows Update Service

Post navigation

KB ID 0001679

Problem

I don’t like WSUS, the product is OK (ish) the problem with it is, every time it’s deployed, typically the person it was deployed for never looks after it, or manages it properly, and months/years later it becomes a massive ‘bag of spanners’, which is never the client’s fault, it’s always the poor guy who built it, or the support company’s fault.

If you run WSUS, log into the the thing at least once a week, sort out reporting problems, approve updates accordingly. If I look at your WSUS and see ‘This machine has not reported in for 12 months”. Then I’m going to care as much as you do!

Solution

So let’s say your a conscientious tech and you’ve taken over WSUS from someone else who let it get into a state! There comes a point when its simpler to wipe it out and start again, it might be simpler to create a new server/VM and reinstall from scratch, if that’s the case, do that instead of this! (Remember any GPO’s pointing client to WSUS will need updating, unless the new server has the same FQDN as the old one though!)

Here I’m removing WSUS and re-installing it on the same server, I already have multiple GPOs setup pointing my clients to the WSUS server so I don’t need to do that part.

Warning: If you have ‘Computer Groups’ setup in your GPOs telling client machines that they should be in different computer group object in your WSUS deployment, then take a screenshot of all the group names before you start so you can manually add them back in after rebuild. Note if you have computer groups but don’t reference them with your GPOs you don’t need to do this.

WSUS Removal Procedure

Mine’s a small typical deployment using WID (Windows Internal DataBase), to prove this navigate to C:\Windows\WID, and look for SUSDB. If yours is using SQL you will need to remove that independently, (assuming SQL is only doing WSUS of course!)

How do I get rid of WSUS?

Remove WID and WSUS from an administrative Powershell window;

Uninstall-WindowsFeature -Name UpdateServices,Windows-Intern-Database -Restart

KEEP THIS WINDOW OPEN!

How do I get rid of WSUS?

Now locate the folder containing all your updates, usually called WSUS (unless it was named something bizarre!) Then delete it.

How do I get rid of WSUS?

Now delete the C:\Windows\WID directory.

How do I get rid of WSUS?

Now to remove the IIS AppPool for WSUS, 

Import-Module WebAdministration
IIS:
cd AppPools
del WsusPool

How do I get rid of WSUS?

Whilst still in web administration, jump up a directory and go to sites, then delete the WSUS Adminisration website;

cd..
cd .\Sites\
del ".\WSUS Administration\"

How do I get rid of WSUS?

Reinstall the WSUS components;

I

nstall-WindowsFeature -Name UpdateServices, UpdateServices-WidDB, UpdateServices-Services, UpdateServices-RSAT, UpdateServices-API, UpdateServices-UI

How do I get rid of WSUS?

Now launch WSUS and complete the configuration. Recreate your WSUS directory, (make sure theres plenty of space for the updates!) In production I would not have this on the C:\ Drive!

How do I get rid of WSUS?

Select your new folder.

How do I get rid of WSUS?

Next > Untick (if not required) > Next.

How do I get rid of WSUS?

Next (Unless you have an upstream WSUS server) > Next (Unless you have a proxy server).

How do I get rid of WSUS?

Start connecting > Wait for a while until it will let you continue.

How do I get rid of WSUS?

Select the languages you require > Next > select the products you want to update > Next.

How do I get rid of WSUS?

Select the ‘type‘ of updates you require, (I typically never select Service Packs, Update Rollups, or drivers, (but that’s my preference.)) > Next > Select automatically and set it for early in the morning > Next.

How do I get rid of WSUS?

Let it begin synchronisation > Next > Finish.

How do I get rid of WSUS?

You can view synchronisation progress from the main WSUS window

How do I get rid of WSUS?

At this point you can setup any computer/server ‘test’ groups you require, and start authorising updates for those groups, or setting auto-authorise if that’s your preferred option.

Computers Not Reporting Into WSUS or Erroring

For the most part manually visiting ‘problem client’ and manually running though the update procedure and rebooting a few times will fix the problem, (assuming that the GPO telling it to get its updates from WSUS is correct!)

But sometimes clients flatly refuses to check in at all, for those run the following Powershell commands on them;

$updateSession = new-object -com "Microsoft.Update.Session"; $updates=$updateSession.CreateupdateSearcher().Search($criteria).Updates

wuauclt /reportnow

How do I get rid of WSUS?

Windows Server Update Services – Install and Configure

Windows Client(s) not ‘appearing’ in WSUS

How do I stop Windows Update from WSUS?

Disable Automatic Updates through GPO.
Click Start, and then click Run..
Type gpedit.msc , and then click Ok..
Expand Computer Configuration ▸ Administrative Templates ▸ Windows Components ▸ Windows Update..
Select Configure Automatic Updates, choose Disabled, and click Ok..

How do I switch from WSUS to Windows Update?

How to: WSUS - Bypass to windows updates online.
Step 1: Open CMD with admin privileges. REG ADD “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU” /v UseWUServer /t REG_DWORD /d 0 /f net stop “Windows Update” net start “Windows Update” ... .
Step 2: Open windows update..

What is WSUS and why would you use it?

Windows Server Update Services (WSUS) enables information technology administrators to deploy the latest Microsoft product updates. You can use WSUS to fully manage the distribution of updates that are released through Microsoft Update to computers on your network.

Why do we need WSUS server?

WSUS is also known as Windows Server Update Services, and its first version is called Server Update Services (SUS). It helps distribute updates, fixes, and other types of releases available from Microsoft Update.