Windows Servers

How to Optimize Windows Server Performance on a VPS

By NileVPS Team · Published · 4 min read

اقرأ المقال بالعربي

Windows Server is tuned out of the box for general safety, not for the specific job your server does. On a VPS, where CPU, memory and disk are sized to a plan, small inefficiencies add up: background services nobody uses, updates installing at peak hours, a system drive filling with old component files. This guide covers the changes that make a real difference, in the order we would apply them, and the ones that are better left alone.

Start by measuring

Tuning without data is guessing. Before changing anything, record a baseline for a normal working day using Task Manager, Resource Monitor or Performance Monitor. Useful counters:

CounterWhat it tells you
Processor(_Total)\% Processor TimeOverall CPU load
Memory\Available MBytesFree memory; consistently low values mean memory pressure
Memory\Pages/secHeavy paging to disk
LogicalDisk(*)\Avg. Disk sec/TransferDisk latency per operation
LogicalDisk(*)\Current Disk Queue LengthRequests waiting on the disk

A quick sample from PowerShell:

Get-Counter '\Processor(_Total)\% Processor Time','\Memory\Available MBytes' -SampleInterval 5 -MaxSamples 12

Our Performance Monitor guide shows how to collect these over days with Data Collector Sets. If one resource is clearly saturated, fix that first; everything else is secondary.

Use the High Performance power plan

Windows Server defaults to the Balanced plan, which lets the OS lower CPU performance states when it thinks the load is light. On many virtual machines the hypervisor controls frequency anyway, but switching costs nothing and can reduce latency for bursty workloads:

powercfg /setactive SCHEME_MIN
powercfg /getactivescheme

SCHEME_MIN is the built-in alias for High Performance.

Remove roles and features you do not use

Every installed role adds services, scheduled tasks and update surface. List what is installed:

Get-WindowsFeature | Where-Object Installed

Remove what the server does not need, for example:

Uninstall-WindowsFeature Web-Server -Remove

-Remove deletes the payload from disk as well. If you may need the role later, omit it. For new servers that only run one service, consider Server Core: no desktop shell, fewer components, smaller updates and less memory use.

Review startup services and applications

Look at services set to start automatically and ask whether each one is needed:

Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -eq 'Running' } | Sort-Object DisplayName

Third-party software is usually the biggest offender: updaters, tray agents, vendor telemetry. Set unneeded services to Manual rather than Disabled first, and watch for problems for a few days. Do not disable core Windows services based on online "tweak lists"; many of them are dependencies for things you do use, and the gains are negligible.

Control when updates run

Updates are essential, but an automatic restart at 11 AM is not. Configure active hours or, on standalone servers, use Group Policy (gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > Windows Update) to download automatically and install at a scheduled time in a maintenance window. Check installed updates with:

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

Reclaim disk space on the system drive

A full C: drive slows everything and breaks updates. Clean the component store safely with DISM:

Dism /Online /Cleanup-Image /AnalyzeComponentStore
Dism /Online /Cleanup-Image /StartComponentCleanup

Also check C:\Windows\Temp, application log folders and IIS logs under C:\inetpub\logs\LogFiles, which can grow without limit. Move data, databases and logs to a separate volume where possible.

Page file: leave it system managed

It is tempting to disable the page file on a server with "enough" RAM. Do not. Some applications expect it, crash dumps need it, and Windows uses it to handle commit peaks. Leave it System managed on the system drive unless you have a specific, measured reason to change it. If memory counters show constant paging, the real fix is more RAM or a lighter workload.

Microsoft Defender exclusions

Real-time scanning of database files and their logs can add noticeable disk overhead. Microsoft and database vendors publish recommended exclusions, for example SQL Server data and log files:

Add-MpPreference -ExclusionExtension ".mdf",".ldf",".ndf"

Keep exclusions narrow and documented, and never exclude whole drives or download folders.

Visual effects and RDP

On servers you log into over Remote Desktop, set Adjust for best performance in System Properties > Advanced > Performance Settings, and avoid leaving disconnected sessions running heavy applications. Configure a session time limit so abandoned sessions are logged off.

When tuning is not enough

If the baseline shows CPU constantly above 80 percent, memory consistently near zero, or disk latency high under normal load, configuration changes will not save you. That is a sizing problem. Moving to a plan with more vCPU or RAM is often cheaper than the hours spent squeezing a server that is simply too small. You can compare Windows VPS plans and resize when the numbers justify it.

FAQ

Does disabling Windows services make the server much faster?

Rarely. Built-in services use little CPU when idle, and disabling the wrong one can break updates, networking or remote access. Removing unused roles and third-party agents gives more benefit with less risk.

Should I turn off Windows Update to save resources?

No. Unpatched servers are a serious security risk, especially when exposed to the internet. Schedule updates in a maintenance window instead so they do not interrupt work.

Is Server Core faster than the Desktop Experience?

It uses less memory and disk and has fewer components to update, which helps small VPS plans. The difference in raw application speed is small, so choose it when you are comfortable managing the server with PowerShell and remote tools.

Related guides