Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Windows Server

How to Disable Windows Updates via CMD in Windows Server (and Windows 10/11)

Disable Windows Updates via CMD in Windows Server guide banner

On production servers, an automatic update and restart at the wrong moment can take a service down. This guide shows how to stop and disable Windows Update from the Command Prompt on Windows Server 2016, 2019, 2022 and 2025, using three methods: the policy setting (most reliable), sconfig, and disabling the update services. The same commands also work on Windows 10 and 11 Pro.

Important: turning updates off means you no longer get security patches automatically. Only do it on systems where you install updates yourself on a schedule. Don't leave a server unpatched.

Quick answerOpen CMD as Administrator and run:

net stop wuauserv
sc config wuauserv start= disabled
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
Steps to stop Windows Update from CMD on Windows Server: stop the service, disable it, set the policy, check
Stop updates from CMD

Before you start

  • Open Command Prompt as Administrator: press Win, type cmd, right-click it and choose Run as administrator.
  • In sc config commands, the space after start= is required. start=disabled without the space fails.

Method 1: Turn off automatic updates with a policy (recommended)

This is the method Microsoft supports, and Windows doesn't undo it. It sets the same value as the Group Policy Configure Automatic Updates → Disabled.

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f

Would you rather be notified and install updates yourself, instead of turning them off completely? Use this instead:

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f

AUOptions 2 means "notify before downloading and installing". Apply the change with gpupdate /force or a restart.

On a domain, set it once for many servers in Group Policy: Computer Configuration → Administrative Templates → Windows Components → Windows Update → Configure Automatic Updates.

Ways to control Windows Update on Windows Server: sconfig manual, registry policy, disabled service
Ways to control updates

Method 2: Set updates to manual with sconfig (Windows Server)

Windows Server includes the sconfig menu, on Server Core and Desktop Experience alike:

  1. Run sconfig in an administrator CMD or PowerShell window.
  2. Choose the Update setting option.
  3. Select Manual updates.

The server will no longer download or install updates on its own. You can still install them from the same menu whenever you choose.

Method 3: Stop and disable the Windows Update service

1. Stop the service now

net stop wuauserv

2. Stop it from starting again

sc config wuauserv start= disabled

3. (Optional) Disable the related services

net stop bits
sc config bits start= disabled
sc config UsoSvc start= disabled

BITS downloads updates in the background, and UsoSvc (Update Orchestrator) schedules scans and installs. On newer builds, UsoSvc may return Access is denied. That's expected, so rely on Method 1 instead.

4. Check the result

sc qc wuauserv | findstr START_TYPE
sc query wuauserv | findstr STATE

You should see START_TYPE : 4 DISABLED and STATE : 1 STOPPED.

Why the service sometimes comes back: Windows has a protected Windows Update Medic Service (WaaSMedicSvc) that can repair, meaning re-enable, the update service. That's why the policy setting in Method 1 is the reliable way to keep automatic updates off. Disabling the service is best used together with it.

Checklist if you stop Windows Update on a server: patch on a schedule, never leave it unpatched
Still patch it

Disable automatic updates with PowerShell

Stop-Service wuauserv -Force
Set-Service wuauserv -StartupType Disabled
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoUpdate -Value 1 -Type DWord

How to turn Windows Updates back on

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /f
sc config wuauserv start= demand
sc config bits start= delayed-auto
net start wuauserv

Then open Settings → Windows Update (or sconfig on Server) and run Check for updates.

Best practice for servers

Instead of switching updates off forever, set them to manual or notify (Method 1 with AUOptions 2, or Method 2). Then install updates in a planned maintenance window each month, after taking a snapshot or backup. You keep control over restarts without leaving the server exposed.

Frequently asked questions

How do I stop Windows Update permanently using CMD?

Set the policy with reg add ... /v NoAutoUpdate /d 1 and disable the service with sc config wuauserv start= disabled. The policy is what keeps it off, because Windows can re-enable the service by itself.

Why does Windows Update turn itself back on?

The protected Windows Update Medic Service repairs the update service. Use the policy method, which Windows respects.

Does this work on Windows 10 and 11?

Yes. The commands are the same. On Windows 10/11 Home, the NoAutoUpdate policy may be ignored, so set updates to pause in Settings instead.

Is it safe to disable Windows Updates on a server?

Only if you patch manually and regularly. An unpatched server that faces the internet is a security risk. Manual or notify mode is the safer choice.

Minakshi, Server Administrator L1 at 99RDP
Written byMinakshiServer Administrator L1, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Windows Server guides

All Windows Server guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services