Wiseindy
How to set up WSUS on Windows Server 2012 R2 – A Step-by-Step Guide - Wiseindy Explorer
https://wiseindy.com/blog/windows/how-to-set-up-wsus-on-windows-server-2012-r2-a-step-by-step-guide/

How to set up WSUS on Windows Server 2012 R2 – A Step-by-Step Guide

Contents
  1. Why WSUS?
  2. What you need:
  3. Step 1:
  4. Step 2:
  5. Step 3:
  6. Step 4:
  7. Step 5:
  8. Step 6:
  9. Step 7:
  10. Step 8:
  11. Step 9:
  12. Step 10:
  13. Step 11:
  14. Step 12:
  15. Step 13:
  16. Step 14:
  17. Step 15:
  18. Step 16:
  19. Step 17:
  20. Step 18:
  21. Step 19:
  22. Step 20:
  23. Step 21:
  24. Step 22:
  25. Step 23:
  26. Step 24:
  27. Step 25:
  28. Step 26:
  29. Step 27:
  30. Step 28:
  31. Step 29:
  32. Step 30:
  33. Step 31:
  34. Step 32:
  35. Step 33:
  36. Step 34:
  37. Step 35:
  38. Step 36:
  39. Step 37:
  40. Step 38:
  41. Step 39:
  42. Step 40:
  43. Step 41:
  44. Step 42:

Heads up (as of November 2026): This guide is from 2015. Windows Server 2012 R2 reached end of support in October 2023, and Microsoft has since announced that WSUS itself is deprecated. It still works and still ships with Windows Server, but it won’t be getting any new features. If you’re starting fresh today, it’s worth looking at Microsoft’s newer options like Windows Autopatch or Intune before going down this road.

Windows Server Update Services (WSUS) is a free patch management tool by Microsoft. It allows sysadmins to centrally push Microsoft product updates to computers that are running Windows on their network.

This guide will help you set up your very own WSUS server on Windows Server 2012 R2.

Why WSUS?

How do Windows computers usually update? In a non-WSUS environment (generally all home environments), each PC independently connects to Microsoft Update to get its patches and MS product updates.

This may not be always preferred in a corporate environment. Instead of each workstation manually connecting to Microsoft Update, testing updates and then deploying updates using traditional methods, administrators can use WSUS to download updates centrally to an internal server. Once updates are authorised in WSUS, they’re also deployed internally and reporting tools keep administrators informed of patch progress. This is a very efficient way of working, allowing administrators full control of which updates are deployed to workstations.

In Windows Server 2012 and 2012 R2, WSUS is integrated with the operating system as a server role. In previous versions of Windows Server (2003, 2008, 2008 R2), you had to separately install WSUS 3.0.

Also, seems like Microsoft will be moving away from WSUS to an entirely new product called Windows Update for Business (WUB). You can read more about it here.
Ok, so now, let's see how we can set up WSUS on Windows Server 2012 R2

What you need:

  1. A machine with Windows Server 2012 R2 installed
  2. Internet connection
  3. 20 minutes (not including download times)
I started with a fresh install of Windows Server 2012 R2 on a VM and connected it to my domain.

Step 1:

On your Windows Server 2012 R2 machine, launch Server Manager as shown below.

You can either launch it using the icon in the taskbar or you can click the Start button and just search for “server manager”.

Click on the Server Manager icon on the taskbar to launch Server Manager

Step 2:

Once Server Manager is open, select Add roles and features.

Server Manager window

Step 3:

In the Add Roles and Features Wizard, click next on the Before You Begin page. You can optionally select to Skip this page by default for the future.

Add Roles and Features Wizard: click Next on the Before You Begin page

Step 4:

Select Role-based or feature-based installation

Select Role-based or feature-based installation in the Add Roles and Features Wizard

Step 5:

Select your server from the server pool. If you're not using Hyper-V, you will see only one server, i.e., your soon-to-be WSUS server.

Select the destination server from the server pool

Step 6:

In the Server Roles list, scroll down and select Windows Server Update Services

Select the Windows Server Update Services role in the Server Roles list

Step 7:

A window will pop up showing you the features that are required for WSUS which will be enabled. Click Add Features

Click Add Features to add the features required for WSUS

Step 8:

You will notice that IIS has been automatically selected. Leave everything as default and click Next

Web Server (IIS) and Windows Server Update Services roles selected, click Next

Step 9:

On the Features screen, leave the default selections and click Next

Select features screen with the default selections, click Next

Step 10:

On the Web Server Role (IIS) page, click Next

Web Server Role (IIS) page in the Add Roles and Features Wizard

Step 11:

Leave all selections as default on the Role Services page and click Next

Default IIS role services selected on the Select role services page

Step 12:

Click Next on this screen

Windows Server Update Services information page, click Next

Step 13:

On the Role Services page, make sure WID Database and WSUS Services are selected (They should be selected by default). Click Next

WSUS role services with WID Database and WSUS Services selected

Step 14:

This page will allow you to set the destination directory for the downloaded updates. Tick the checkbox for Store updates in the following location.

Enter the path here. It can either be a local or a remote path. Keep in mind that WSUS will take up considerable amount of storage as time goes on. It is not unusual to find update folders of sizes greater than 100 GB.

Choose your destination accordingly.

WSUS content location: store updates in a local folder

Step 15:

On the Confirmation screen, check the Restart the destination server automatically if required option if you wish to do so, otherwise you can leave it unchecked.

Click Install

Confirm installation selections for WSUS and click Install

Step 16:

Sit back and grab a coffee. This will take about 5-10 minutes.

WSUS feature installation in progress

Step 17:

Once it's installed, hit Close

WSUS installation succeeded, click Close

Step 18:

Search for WSUS or Windows Server Update Services and launch it

Search for WSUS on the Windows Server 2012 R2 Start screen

Step 19:

Since it's the first time you're opening it, it'll take a while to set up. Wait for it to complete and then hit Close

Complete WSUS Installation post-installation task in progress

WSUS post-installation completed, click Close

Step 20:

You will now see a wizard that will walk you through a series of steps to configure your installation.

Before starting, make sure of the following:

  • Confirm whether the PCs on your network can communicate with this server.
  • Your WSUS server should be able to communicate with Microsoft Update (Make sure your firewall isn't blocking it)
  • If your environment uses a proxy, make sure you have the proxy server credentials before continuing.
If all seems well, click Next

WSUS Configuration Wizard Before You Begin page

Step 21:

If you would like to join the Microsoft Update Improvement Program, check the box. Otherwise uncheck it. Click Next

WSUS Configuration Wizard: join the Microsoft Update Improvement Program

Step 22:

If you want to sync updates directly from Microsoft Update (the most likely scenario in your case since you're reading this guide), enable the first option and click Next.

If you already have a WSUS server in your environment and want your new WSUS to sync updates from that instead of Microsoft Update, enable the second option.

  • Enter the server name and port number (For WSUS on Windows Server 2012 R2, the default port is 8530)
  • Enable/disable SSL based on your environment
  • Decide whether it is going to be a replica server or not and click Next
WSUS Configuration Wizard: choose upstream server, synchronize from Microsoft Update

Step 23:

If you use a proxy server, enter the details here, otherwise leave the checkbox unchecked and click Next

WSUS Configuration Wizard: specify proxy server settings

Step 24:

Your server will now need to connect to Microsoft Update and find out information about all available updates.

Click Start Connecting. This might take up to 20 minutes or more depending upon your connection.

Once it’s done, hit Next

WSUS connecting to Microsoft Update to download update information

Connection to the upstream server complete, click Next

Step 25:

Choose which languages you need updates for and click Next. You can always modify this later.

WSUS Configuration Wizard: choose update languages, English selected

Step 26:

The Choose Products screen will allow you to subscribe for updates for different Microsoft products.

After selecting your products, click Next

WSUS Configuration Wizard: Choose Products list

Choose Products: Microsoft Office products selected for updates

Choose Products: Windows products selected for updates

Step 27:

Here you can choose what type of updates you want to subscribe to. Do you want just critical & security updates? Or do you want everything? This is where you can specify that.

WSUS Configuration Wizard: choose update classifications

Step 28:

Configure your sync schedule for updates here. The synchronization process involves downloading updates from Microsoft Update or another WSUS server. WSUS determines if any new updates have been made available since the last time you synchronized. If this is the first time you are synchronizing the WSUS server, all of the updates are made available for approval.

I chose to automatically sync my server with Microsoft Update daily at 2 AM.

Set the WSUS sync schedule to synchronize automatically at 2 AM

Step 29:

Select Begin initial synchronization to sync with Microsoft Update and click Next and then Finish

WSUS Configuration Wizard: Begin initial synchronization selected

WSUS Configuration Wizard What's Next page, click Finish

Step 30:

The Update Services console will now launch.

This is going to be the place from where you can control everything.

Right now, under the To Do section, you will not see much. Wait for the server to synchronize with Microsoft Update. Once it syncs, you will see information like how many updates are available, how many are approved, etc.

Under the Overview section, you can see the Synchronization Status.

Update Services console with synchronization starting at 0%

Synchronization status is now 12%

Update Services console showing synchronization at 12%

Step 31:

Synchronization is finally complete. You can now see the number of updates that are available to you under the To Do section.

WSUS synchronization complete with updates waiting for approval

This completes the installation and initial configuration of our WSUS server. However, this server is not going to be much use to you right now. It still isn’t pushing any updates to your workstations still.

Let’s fix that.

Step 32:

We will be using a GPO to register the workstations on our network with our newly created WSUS server.

Fire up your Group Policy Management console. Right-click Group Policy Objects and create a new GPO.

Right-click Group Policy Objects and create a new GPO

Give it an easy-to-identify name.

New GPO dialog with the name Enable WSUS

After its created, right-click and choose Edit. We will now configure the GPO.

Right-click the Enable WSUS GPO and select Edit

Step 33:

Expand Computer Configuration > Policies > Administrative Templates > Windows Components > Windows Update

Group Policy Management Editor showing Computer Configuration policies

Step 34:

Double-click Configure Automatic Updates

Configure Automatic Updates setting under Windows Update in Group Policy

Select Enabled

Under Options, choose how would you want your workstations to update. In my case, I prefer the PCs to download the updates and schedule them to be installed at 3 AM daily.

Once you are satisfied with the options, click OK to exit the screen.

Configure Automatic Updates enabled to auto download and install daily at 03:00

Step 35:

Next, double-click Enable client-side targeting. Configuring this setting will enable the workstations on your network to register directly with your WSUS server (client-side registration).

Enable client-side targeting setting in the Windows Update GPO

Select Enabled. In the Options area, type the group name for this computer (Your WSUS server can use this information to group computers into different groups. We will see how this is done further below).

Enable client-side targeting with target group wsus-workstations

Step 36:

Next, double-click on Specify intranet Microsoft update service location. This is where you will specify your WSUS server's address.

Specify intranet Microsoft update service location setting in the GPO

Select Enabled. In the Options area, specify your server name in the form of a URL as shown below.

My WSUS server’s hostname is my-wsus-server. The default port number for WSUS on Windows Server 2012 R2 is 8530, so my complete server address is: http://my-wsus-server:8530

Enter the same URL in both the text boxes and click OK.

Set the intranet WSUS server URL to http://my-wsus-server:8530

Step 37:

Well, the last step is to link the GPO to an OU. Select an OU which has your test computer. Right-click it and select Link an Existing GPO.

Right-click an OU in Group Policy Management and select Link an Existing GPO

Choose your newly created GPO and click OK.

Select GPO dialog with the Enable WSUS GPO selected

Step 38:

Let's go back to our WSUS server and create a new computer group. By default, under All Computers, you'll see a default group called Unassigned Computers. Any computer that doesn't belong to a group will appear here.

WSUS console All Computers group with no computers yet

Right-click All Computers and select Add Computer Group…

Right-click All Computers and select Add Computer Group in WSUS

Enter the name of the group. I entered the same group name that I had specified in my GPO (Step 35).

Click Add.

Add Computer Group dialog with the name wsus-workstations

Step 39:

Now, we can either wait for the GPO to be automatically applied to our test computer or, if you are impatient like me, we can speed things up.

Log into your test computer.

Open up Command Prompt as Administrator and run 3 commands as shown below.

  • gpupdate /force
  • wuauclt.exe /detectnow
  • wuauclt.exe /reportnow
Run gpupdate /force in an elevated Command Prompt Run wuauclt.exe /detectnow and /reportnow in Command Prompt

Step 40:

Go back to your WSUS server. Select All Computers group.

Hit refresh.

You will see that your test computer has appeared in the list.

Test computer appears under All Computers in the WSUS console

If you don’t see your test computer here, do the following:

  • Wait for about 5 minutes and hit Refresh again. Sometimes it takes a while for the PCs to show up even if you have run the above commands.
  • Double-check your GPO settings. Make sure you linked it to the correct OU. The OU should have your test computer account and not the user account since it's a Computer Configuration policy.
  • Run the commands (specified in Step 39) again on your test computer. Make sure you run them from an elevated command prompt.
  • Reboot your test computer.

Step 41:

You will notice that even though you have specified the computer to be added to a group wsus-workstations in the GPO, the test computer still appears under Unassigned Computers.

Test computer listed under the Unassigned Computers group in WSUS

WSUS wsus-workstations group with no computers in it

Well, that’s because by default, WSUS ignores the groups and places all discovered computers in the Unassigned Computers group. You can then manually move it to whichever group you want.

You can change this setting. If you want the computers to automatically add themselves to the group specified in the GPO, do the following.

In your Update Services console, select Options. Double-click on Computers

WSUS Options page with the Computers option highlighted

Choose the second option that says Use Group Policy or registry settings on computers.

WSUS Computers option: use Group Policy or registry settings on computers

Now any computer that your GPO will apply to, will automatically appear in the group wsus-computers instead of Unassigned Computers.

You can make different GPOs for machines that you want to be grouped differently.

Step 42:

Now, since we have added a test computer, lets see how we can push updates to it.

In your WSUS console, expand the Updates tree and select All Updates. You will see updates which are needed and that are not yet approved.

You will have to Approve them so that they can be pushed out to your test computer.

Select the updates you want to approve using the Shift or Ctrl key.

From the Actions sidebar on the right, select Approve… (you can also right-click the selected updates and do the same)

Select unapproved updates under All Updates and click Approve in WSUS

In the window that pops up, right-click All Computers and select Approved for Install.

Approve Updates dialog: right-click All Computers and select Approved for Install

You’ll notice that the updates haven’t been approved for the groups individually. Right-click All Computers again and select Apply to Children. This will approve updates for all the children groups under All Computers.

Since you have just one test computer right now, we have approved it for all the computers. However, in a production environment you should first approve the updates to a test group (instead of all computers) to see if the updates cause any sorts of problems. Once you are certain the updates don’t break anything, you can push it to the critical machines.

Approve Updates dialog: select Apply to Children for All Computers

Select OK

Approve Updates dialog with updates approved for install, click OK

The updates have been approved. Now during the scheduled time (3 AM in our case), these updates will be pushed to our test computer.

WSUS Approval Progress window showing approval completed without errors

That’s it! Our WSUS server is now set up.

Hope this guide was useful to you. You can leave your feedback in the comments below.

Header photo via rawpixel (CC0)

Keywords:guideserverwindowswindows server 2012 r2windows server update serviceswindows update for businesswsuswubGuides

Guestbook