Windows Server updates
How to install cumulative updates on a VDS with Windows Server, set a restart window, and what to do if an update hangs or rolls back.
Updated August 23, 2026
A fresh Windows Server 2022 or 2025 image is always several cumulative updates behind the current state. The first update after your machine is provisioned is a mandatory step; after that, once a month is enough.
Through the interface
Settings → Windows Update → “Check for updates”. On VDS-1 and VDS-2 the process is slow: installing a cumulative update requires memory and writes heavily to disk, and the write speed is limited by the tier. Allow half an hour and don't force-reboot the machine in the middle of the installation.
Through PowerShell
Managing updates with commands is more convenient — especially if you work without RDP.
Install-PackageProvider -Name NuGet -Force
Install-Module PSWindowsUpdate -Force -Scope AllUsers
Import-Module PSWindowsUpdate
Get-WindowsUpdate # what is available
Install-WindowsUpdate -AcceptAll -IgnoreReboot
Get-WUHistory | Select-Object -First 10 # what is already installed
Reboot when ready:
Get-WURebootStatus
Restart-Computer -Force
You can also check installed packages without the module: Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10.
When to update
Install updates manually in a convenient window rather than letting the system decide in the middle of the workday. Configure active hours and postpone the automatic restart:
$p = "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings"
Set-ItemProperty $p -Name ActiveHoursStart -Value 8
Set-ItemProperty $p -Name ActiveHoursEnd -Value 23
You shouldn't disable Windows Update entirely: an unpatched machine with RDP exposed survives only until the first mass vulnerability.
Before a major update, make a copy of your important data. The panel has no machine snapshots, and no automatic copies either — you'll have to restore from what you saved yourself, see Backups.
If something goes wrong
- “Reverting changes” looping at boot. Wait for the rollback to finish, don't power off the machine. You can conveniently watch the process via “Screen” in the panel console
/hosting/vds/m/<id>. - The update is stuck at one percent. This is often not a hang but slow disk writes on VDS-1. Check activity via “Screen” and wait another twenty minutes.
- “Not enough space” error. A cumulative update needs 10–20 GB of free space. Free it up:
Cleanmgr /verylowdiskordism /online /cleanup-image /startcomponentcleanup /resetbase. - The component store is corrupted. Repair it:
dism /online /cleanup-image /restorehealth
sfc /scannow
- A single update breaks your application. Uninstall it:
wusa /uninstall /kb:5031234 /quiet /norestart— and hide it from reinstalling viaHide-WindowsUpdate -KBArticleID KB5031234.
Common mistakes
Rebooting the machine with the panel button during installation is the surest way to end up with a broken system. Use a soft reboot (provided by the qemu-guest-agent guest agent) and only after the update has finished.
The second mistake is leaving the disk more than 80% full. Updates have no room to unpack, and they fail with obscure error codes.
On tiers with 40 GB and 80 GB of disk, regularly clean the
C:\Windows\SoftwareDistribution\Downloadfolder after a successful installation — downloaded packages remain there.