This article outlines how to disable or manually control Windows Updates on Windows Server using both the sconfig tool and PowerShell. It also covers how to prevent automatic restarts and maintain system stability.
sconfig to Set Windows Updates to ManualOpen Command Prompt or PowerShell as Administrator.
Type the following command and press Enter:
sconfigFrom the Server Configuration menu, type 5 to select Windows Update Settings.
When prompted, type M to set the updates to Manual.
This will stop the server from automatically downloading and installing updates.
To completely disable Windows Update, run the following PowerShell commands:
wuauserv):Stop-Service wuauserv
Set-Service wuauserv -StartupType DisabledUsoSvc):Stop-Service UsoSvc
Set-Service UsoSvc -StartupType DisabledWaaSMedicSvc)This service can automatically re-enable update services. To disable it:
Open Registry Editor:
regeditNavigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WaaSMedicSvcModify the Start DWORD value to 4 (Disabled).
Note: You may need to take ownership and grant permissions on the registry key before modifying it.
To stop the server from rebooting after updates:
Open Task Scheduler (taskschd.msc).
Navigate to:
Task Scheduler Library > Microsoft > Windows > UpdateOrchestratorDisable the task named Reboot.
Use the Group Policy Editor to prevent automatic restarts:
Open gpedit.msc.
Navigate to:
Computer Configuration > Administrative Templates > Windows Components > Windows Update > Windows Update for BusinessEnable the policy: No auto-restart with logged on users for scheduled automatic updates installations.
Disabling updates is not recommended long-term without a patching strategy.
For production systems, consider using WSUS or a controlled update window.
Regularly check for critical updates and apply them manually if required.