Install Windows Updates on Server Core

Install Windows Updates on Server 2012 Core

Server Core has no Control Panel and no Windows Update app, so patching is done from the console. The easiest way is sconfig, the text-mode configuration menu that ships with Server Core. Behind the scenes option 6 runs a Windows Update Agent script with cscript, so it talks to the same update source as the GUI would: Microsoft Update directly, or your WSUS server if one is set by Group Policy.

Prerequisites

  • A Windows Server 2012 or 2012 R2 Core installation (see Install Server 2012 Core).
  • An account in the local Administrators group.
  • Internet access to Microsoft Update, or a reachable WSUS server.
  • A maintenance window, since most cumulative updates need a reboot. Take a snapshot first if the server is a VM.

Step 1: open sconfig

login as administrator, and open sconfig

sconfig
cmd.exe on Server 2012 Core (version 6.2.9200) with sconfig typed at the prompt

Step 2: choose Download and Install Updates

Select option 6

sconfig Server Configuration menu with option 6 Download and Install Updates indicated

Option 5 on the same menu (Windows Update Settings) controls whether the server patches itself automatically or only when you ask; on servers it is usually left on Manual, as shown here, so reboots happen on your schedule.

Step 3: choose all or recommended updates

it will ask do you want to do all updates, or only reccomended?

cscript Windows Update window asking Search for (A)ll updates or (R)ecommended updates only

we usually do all

Recommended limits the search to important and recommended updates; All also includes optional updates.

it’s going to take a second to check for updates

Answer a entered, Searching for all applicable updates

Step 4: install the updates

as you can see we have some updates

List of applicable items showing Update for Windows Server 2012 (KB2751352) with the A/N/S prompt

let’s select “A” to install all updates

The prompt also lets you pick (N)o updates to cancel, or (S)elect a single update by its number, which is handy when you only want to apply one specific KB.

it’s now downloading

All updates selected and the script now Downloading updates

once downloaded, it should say installing updates

Downloading complete and the script reporting Installing updates

Step 5: reboot

a restart may still be required (it’s windows, i know the command line has everyone excited)

Restart Required dialog, a restart is required to complete Windows Updates, Restart now

go ahead, and reboot, and should be good!

If you answered No to the restart prompt, reboot later from sconfig option 13 or with:

shutdown /r /t 0

After the reboot, run option 6 again. Some updates only appear once earlier ones are installed, so repeat until the search finds nothing.

Verify the installed updates

List installed hotfixes, newest first, from PowerShell:

Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10

From cmd, wmic qfe list brief gives the same list.

Troubleshooting

  • The search hangs or fails with an error code: check DNS and proxy settings first. netsh winhttp show proxy shows the proxy the update agent uses.
  • Updates you expected are missing: the server may be pointed at WSUS by Group Policy and only gets approved updates. Run gpresult /r and check the WSUS server.
  • Logs: on Server 2012 the update agent writes to C:\Windows\WindowsUpdate.log. On Server 2016 and later, run Get-WindowsUpdateLog in PowerShell to build a readable log on the desktop.

Newer Windows Server versions

sconfig is still on Server Core in Windows Server 2016, 2019, 2022 and 2025, and option 6 is still the update option. In 2022 and later sconfig is a PowerShell-based menu and asks whether to install all quality updates, recommended updates only, or feature updates, but the flow is the same. Windows Admin Center is the browser-based alternative if you would rather manage updates for several Core servers from one place.

to get a hosted Windows Server 2012 instance, visit www.zwiegnet.com/go to get started today

Related guides: Install Server 2012 Core | Reboot Windows Server Core

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *