Prevent Windows VPS from Sleeping
Introduction
This guide shows you how to prevent your Windows VPS from going to sleep using the graphical interface.
Method: Graphical Interface
Step 1: Configure Power Options
Open Power Settings
- Press
Windows + R - Type:
powercfg.cpl - Press Enter
Modify Active Power Plan
- Click on Change plan settings next to your active power plan
- Set EVERYTHING to Never:
- Turn off the display: Never
- Put the computer to sleep: Never
Advanced Settings
- Click on Change advanced power settings
- Configure these settings to Never or 0:
- Hard disk → Turn off hard disk after: Never
- Sleep → Sleep after: Never
- Sleep → Allow hybrid sleep: Off
- Sleep → Hibernate after: Never
- Click Apply then OK
Step 2: Configure RDP via Registry Editor
Open Registry Editor
- Press
Windows + R - Type:
regedit - Press Enter
Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Create/Modify These Values
Double-click on each value and set:
- MaxIdleTime:
0 - MaxDisconnectionTime:
0 - MaxConnectionTime:
0 - Type: DWORD (32-bit)
Note: If these values don't exist, create them:
- Right-click in the right pane
- Select New → DWORD (32-bit) Value
- Name it accordingly
- Set the value to
0
Close Registry Editor
Step 3: Disable Screen Saver
- Press
Windows + R - Type:
control desk.cpl,,@screensaver - Press Enter
- Set Screen saver to None
- Uncheck On resume, display logon screen
- Click OK
Step 4: Disable Fast Startup
- Press
Windows + R - Type:
powercfg.cpl - Press Enter
- Click on Choose what the power buttons do (left sidebar)
- Click on Change settings that are currently unavailable
- Uncheck Turn on fast startup (recommended)
- Click Save changes
Step 5: Set High Performance Power Plan
- Press
Windows + R - Type:
powercfg.cpl - Press Enter
- Select High performance (if not visible, click Show additional plans)
- If High Performance is not available, open PowerShell as Administrator and type:
powercfg -duplicatescheme 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Verification
Check Power Plan
- Press
Windows + R - Type:
powercfg.cpl - Press Enter
- Verify that High performance is selected
Check Sleep Settings
- Open Power Options
- Click Change plan settings on your active plan
- Verify all timeouts are set to Never
Check RDP Settings
- Press
Windows + R - Type:
regedit - Press Enter
- Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp - Verify that MaxIdleTime, MaxDisconnectionTime, and MaxConnectionTime are all set to
0
Mandatory Restart
For all changes to take effect, restart your server:
- Click on Start
- Click on Power
- Click on Restart
Or use Command Prompt:
shutdown /r /t 60
To cancel the restart:
shutdown /a
Troubleshooting
If Server Still Goes to Sleep
Check Windows Update Settings
- Press
Windows + R - Type:
services.msc - Press Enter
- Find Windows Update
- Double-click it
- Set Startup type to Manual
- Click Stop if the service is running
- Click OK
Disable Scheduled Tasks
- Press
Windows + R - Type:
taskschd.msc - Press Enter
- Navigate to: Task Scheduler Library → Microsoft → Windows → UpdateOrchestrator
- Right-click on any sleep-related tasks
- Select Disable
Check Device Wake Settings
- Press
Windows + X - Select Device Manager
- Expand Network adapters
- Right-click on your network adapter
- Select Properties
- Go to Power Management tab
- Uncheck Allow this device to wake the computer
- Click OK
Additional Configuration (Optional)
Disable Hibernation Completely
- Open Command Prompt as Administrator
- Type:
powercfg -h off
- Press Enter
Disable System Maintenance
- Press
Windows + R - Type:
control /name Microsoft.ActionCenter - Press Enter
- Click Maintenance
- Expand Automatic Maintenance
- Uncheck Allow scheduled maintenance to wake up my computer at the scheduled time
Conclusion
After following all these steps and restarting, your Windows VPS should never go to sleep again. The graphical interface method is ideal for users who prefer visual configuration over command-line tools.
If the problem persists, your hosting provider might be forcing sleep at the hypervisor level - contact their technical support in this case.
Quick Checklist
- Power plan set to High Performance
- All sleep timeouts set to Never
- Screen saver disabled
- Fast startup disabled
- RDP registry values set to 0
- Hibernation disabled
- Server restarted
- Configuration verified
Support
If you continue experiencing issues after following this guide:
- Verify each step was completed correctly
- Check Windows Event Viewer for sleep-related events
- Contact your VPS hosting provider's support team
- Consider using the PowerShell method for more comprehensive configuration


















