Windows Server & RDP9 min read•Last updated: •By SkyRain Cloud Team

RDP Security Guide: 12 Ways to Protect a Windows Server from Attacks

Remote Desktop is the main way into a Windows server, which makes it the main way attackers try to get in too. Exposed RDP has long been one of the most common starting points for ransomware incidents, usually through stolen or guessed passwords rather than clever exploits. Good RDP security is therefore less about exotic tools and more about closing the obvious doors properly.

This guide gives you twelve practical protections for a Windows VPS or dedicated server, ordered from most to least impact, with the exact settings and commands. Work through the first five and you will already be ahead of most servers on the internet.

Quick answer

To secure RDP: restrict access to known IP addresses or a VPN; keep Network Level Authentication on; use long unique passwords with account lockout; install Windows updates promptly; limit which accounts may log in remotely; and require TLS with idle-session limits. Add multi-factor authentication where you can, watch failed-logon events (ID 4625), and keep offline backups. Changing the default port only reduces noise; it is not protection on its own.

What attackers actually do to RDP servers

Knowing the attacks makes it obvious which defences matter. Most RDP compromises follow one of four patterns:

AttackHow it worksBest defence
Brute force and password sprayingBots try common usernames and passwords thousands of times a dayIP allowlist or VPN, strong passwords, account lockout
Credential stuffingPasswords leaked from other websites are tried on your serverUnique passwords, multi-factor authentication
Unpatched vulnerabilitiesFlaws such as BlueKeep (CVE-2019-0708) allowed attacks without a password on old Windows versionsPrompt updates, NLA, supported Windows versions
Hands-on-keyboard after loginAn attacker who gets in disables antivirus, steals data, then encrypts filesLeast privilege, monitoring, offline backups
RDP security – SkyRain Cloud servers in India

Protections 1–3: control who can reach RDP at all

1. Allow RDP only from known IP addresses

This is the single most effective step. If only your office and home addresses can reach port 3389, password-guessing bots never get a chance. Edit the existing Remote Desktop firewall rules to accept only your addresses:

Set-NetFirewallRule -DisplayGroup "Remote Desktop" -RemoteAddress 203.0.113.10,198.51.100.0/24

Many Indian broadband connections have changing IP addresses. If yours does, use the next option instead of constantly editing the rule.

2. Put RDP behind a VPN

A VPN such as WireGuard, or a mesh tool like Tailscale, lets you close RDP to the internet completely and connect over a private address. Only devices on the VPN can see the server. Our guide to running Tailscale on a VPS shows how the pieces fit. For larger teams, Microsoft's Remote Desktop Gateway does a similar job over HTTPS.

3. Move RDP off port 3389

A custom port does not stop a determined attacker, but it removes most automated scanning and makes your logs readable. Follow our step-by-step guide to change the RDP port safely, creating the firewall rule before you change the port.

Protections 4–7: make logging in hard for anyone but you

4. Keep Network Level Authentication on

NLA makes users authenticate before Windows creates a desktop session. That saves server resources under attack and blocks several classes of pre-login exploits. Check and enforce it:

(Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp').UserAuthentication
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 1

A value of 1 means NLA is required. Current Remote Desktop clients on Windows, macOS, iOS and Android all support it.

5. Use long, unique passwords and an account lockout policy

A passphrase of four or five random words is both stronger and easier to type than a short complex password. Then limit how many guesses an attacker gets:

net accounts /lockoutthreshold:5 /lockoutwindow:15 /lockoutduration:15

This locks an account for 15 minutes after five failed attempts within 15 minutes. Note that the built-in Administrator account is treated differently by lockout policies on some versions, which is one more reason for the next step.

6. Limit which accounts can log in remotely

  • Create a named admin account for each person rather than sharing "Administrator".
  • Add day-to-day users to the Remote Desktop Users group only, not to Administrators.
  • Rename or disable the built-in Administrator account once you have a working named admin, because it is the first username every bot tries.
  • Remove accounts for staff who have left on the same day they leave, and rotate any shared passwords they knew; see how to change the Administrator password.

Setting up several users properly is covered in our guide to running multiple RDP sessions on a Windows VPS.

7. Add multi-factor authentication

Windows Server does not add a second factor to plain RDP logins by itself. Options include Remote Desktop Gateway with an MFA provider, third-party RDP MFA agents, or simply requiring a VPN that already uses MFA. Any of these stops attacks that rely on a stolen password alone.

Protections 8–10: harden the server and the session

8. Install updates promptly

Microsoft fixes Remote Desktop flaws in its monthly updates. Install them within days, not months, and reboot when required. Use a supported Windows version: if you are choosing one now, see Windows Server 2022 vs 2025.

9. Require TLS and a proper certificate

In Group Policy (gpedit.msc), go to Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Security. Set Require use of specific security layer for remote (RDP) connections to SSL, and Set client connection encryption level to High Level. If clients show a certificate warning every time, replace the self-signed certificate with one your users trust, so people do not learn to click through warnings.

10. Limit idle and disconnected sessions, and redirection

In the same Group Policy area under Session Time Limits, set a limit for idle sessions and for disconnected sessions. A forgotten logged-in session is an open door. Under Device and Resource Redirection, disable clipboard and drive redirection if your users do not need them; that makes it harder to copy data off the server.

Protections 11–12: notice attacks and survive the worst case

11. Watch failed and successful logons

Windows records failed logons as event 4625 and successful ones as event 4624 (logon type 10 means Remote Desktop). This command lists the source addresses with the most failures in the last day:

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=(Get-Date).AddDays(-1)} |
  ForEach-Object { ([xml]$_.ToXml()).Event.EventData.Data | Where-Object Name -eq 'IpAddress' | Select-Object -ExpandProperty '#text' } |
  Group-Object | Sort-Object Count -Descending | Select-Object -First 10 Count, Name

Thousands of failures from many addresses means your RDP port is exposed and being sprayed: a clear sign to apply protection 1 or 2. A successful type-10 logon at 3 a.m. from an unknown address means you should act immediately.

12. Keep backups an attacker cannot delete

If ransomware does get in, a recent backup stored somewhere the server's own credentials cannot reach is what saves you. Keep at least one copy off the server, test restores, and follow the rules in our automated backups guide.

RDP security checklist

#ProtectionEffortImpact
1Allow RDP only from known IPsLowVery high
2VPN or RD GatewayMediumVery high
3Custom RDP portLowLow (noise reduction)
4Network Level AuthenticationLowHigh
5Strong passwords and lockoutLowHigh
6Named accounts, least privilegeLowHigh
7Multi-factor authenticationMediumHigh
8Prompt updatesLowHigh
9TLS security layer and certificateLowMedium
10Session limits and redirectionLowMedium
11Log monitoringMediumMedium
12Offline backupsMediumCritical when needed

Why teams run Windows on SkyRain Cloud

Security settings work best on a server you control end to end. SkyRain Cloud Windows plans give you:

  • Windows Server ready to use. Plans come with Windows Server pre-installed and activated, so you log in over RDP and start working.
  • Full Administrator access. Install your own software, change the RDP port, create users and set firewall rules yourself.
  • Resources that are yours. Each plan is a private virtual machine with its own vCores, RAM and disk, not a shared terminal-server account.
  • Indian locations, Indian latency. Servers sit in India, so a remote desktop session from Mumbai, Delhi or Bengaluru feels responsive.
  • Unmetered 1 Gbps port. Updates, file transfers and browser work are not capped by a monthly data allowance.
  • Simple billing and real support. Monthly billing in rupees with UPI, net banking and cards, plus 24/7 tickets, WhatsApp and Discord.

Frequently Asked Questions

Is RDP safe to use over the internet?
It can be, if access is restricted to known IP addresses or a VPN, NLA is enabled, passwords are strong with account lockout, and Windows is kept updated. RDP left open to the whole internet with a weak password is one of the most common ways servers get compromised.
Does changing the RDP port make it secure?
No. It cuts down automated scanning, but an attacker can find RDP on any port. Use it together with IP restrictions, NLA, strong passwords and updates.
What is Network Level Authentication?
NLA requires users to authenticate before a Remote Desktop session is created. It saves resources during attacks and blocks several pre-login exploits.
How can I see who is trying to log in to my RDP server?
Check the Windows Security log. Event ID 4625 records failed logons and 4624 records successful ones; logon type 10 indicates Remote Desktop.
Can I add two-factor authentication to RDP?
Not with Windows alone. Use Remote Desktop Gateway with an MFA provider, a third-party RDP MFA agent, or require a VPN that uses MFA.
Should I disable the Administrator account on a Windows VPS?
Create and test a named administrator account first. Then rename or disable the built-in Administrator, because it is the first username automated attacks try.

Conclusion

RDP is safe enough when you treat it as a door that should only open for known people. Restrict who can reach it, make every login strong and limited, keep Windows patched, and watch the logs. Add backups that live off the server, and an attacker who gets past everything else still cannot hold your business to ransom.

If you want a Windows server in India where you control all of these settings, compare our Windows RDP plans.

SkyRain Cloud Windows RDP Plans

Windows RDP servers in India with full Administrator access and a 1 Gbps unmetered uplink.

PlanvCoresRAMStorageNetworkPriceGood forBuy
RDP Plan 148 GB DDR460 GB Enterprise Disk1 Gbps, unmetered₹999/monthData entry, virtual assistants, one MetaTrader terminalOrder
RDP Plan 2616 GB DDR480 GB Enterprise Disk1 Gbps, unmetered₹1,799/monthTally Prime for small teams, several browser profiles or terminalsOrder
RDP Plan 3824 GB DDR4120 GB Enterprise Disk1 Gbps, unmetered₹2,499/monthMulti-user remote work, automation and SEO toolsOrder
RDP Plan 41232 GB DDR4160 GB Enterprise Disk1 Gbps, unmetered₹3,499/monthRemote teams, large ERP datasets, many concurrent sessionsOrder

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning