Windows VPS

Secure Remote Desktop on Windows Server

Strong passwords, account lockout, custom RDP port and firewall rules. · 5 min read

1. Use a strong password and rename the admin

Use at least 16 characters. Optionally create a new administrator account and disable the built-in one.

2. Enable account lockout

Run secpol.msc → Account Policies → Account Lockout Policy: 5 invalid attempts, 15 minutes lockout.

3. Change the RDP port (optional)

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name PortNumber -Value 3390
New-NetFirewallRule -DisplayName "RDP 3390" -Direction Inbound -Protocol TCP -LocalPort 3390 -Action Allow
Restart-Service TermService -Force

Connect with IP:3390 afterwards. Keep the old rule until the new port works.

4. Allow RDP only from your IP

Set-NetFirewallRule -DisplayName "RDP 3390" -RemoteAddress 203.0.113.10

5. Keep Windows updated

See Windows Update without surprise reboots.

Order a server built by real engineers or talk to our team — we are online 24/7. Support →

Windows VPS

All tutorials

Ready to launch your project?

Order a server built by real engineers or talk to our team — we are online 24/7.