Remote desktop server: RDP for a whole team, sized and secured

A remote desktop server is a Windows Server that several people log in to at once, each with a separate desktop. To run one for a team you need three things: the Remote Desktop Services role with Microsoft licences for every user or device, about 1 to 2 GB of RAM per active person, and a port 3389 that strangers cannot reach.

Updated: · Prices in the text are with the public IP (₼10 a month) unless stated otherwise.

When a shared desktop is the right tool

It shines when one Windows program works with one common database and the people are in different places. Only the picture of the screen, the keyboard and the mouse cross the internet; the program and its data stay next to each other. That is why 1C or a similar accounting package with a shared file database, painfully slow over a VPN to the office, becomes usable over RDP.

It is the wrong tool in three cases: the program has a good web version, people mostly edit video or 3D, or only an administrator connects. In the last case an ordinary Windows VPS is enough.

Sessions and licences

Who connectsWhat Windows allowsWhat Microsoft requires
Up to two administrators, to manage the serverTwo simultaneous sessions, no extra roleNo RDS CALs
Staff working in programs, any numberRD Session Host roleOne RDS CAL per user or per device
The same person from a laptop and a home PCOne named userPer User CAL suits this
Shift workers on one shared computerOne devicePer Device CAL suits this

Four details cause most of the trouble:

  • After the role is installed there is a grace period of 120 days. When it ends without a licence server, new connections are refused.
  • Per User CALs are designed for Active Directory. Without a domain, choose Per Device; a workgroup server of version 2019 or later set to Per User ends sessions after an hour.
  • A CAL must be of the same version as the server or newer. CALs for 2022 work with Server 2019, but not the other way round.
  • RDS CALs come on top of the operating system licence, they do not replace it.

Cloudraft does not claim to include RDS CALs. If the system carries a licence fee, it is shown when you order; for RDS CALs, ask support before you plan the budget, as the rules for rented servers differ from those for a server in your office. Patches that "unlock" more sessions break the licence and tend to fail after the next Windows update.

How much server per person

Start from this formula, then measure: 3 GB for the system + users × memory per user + memory of the database if it lives on the same machine.

Type of workRAM per active userUsers per vCPU
One accounting or stock program1 GB3–4
Accounting, spreadsheets, mail1.5 GB3
Browser with many tabs all day2–2.5 GB2

These are starting points. Count the people who work at the same hour, not everyone on the payroll. Month-end is the real test for accountants.

  • Professional₼73.90/mo

    4 vCPU · 8 GB RAM · 100 GB NVMe

    Public IP +₼10/mo, With public IP: ₼83.90/mo

  • Business₼95.90/mo

    6 vCPU · 12 GB RAM · 120 GB NVMe

    Public IP +₼10/mo, With public IP: ₼105.90/mo

  • Premium₼169.90/mo

    8 vCPU · 24 GB RAM · 200 GB NVMe

    Public IP +₼10/mo, With public IP: ₼179.90/mo

Prices in manat (AZN), billed monthly. The public IP is +₼10 a month and is assigned automatically.

With the first two types of work and the database elsewhere, Professional carries three to four people, Business about six, Business Pro about eight, Premium about fourteen, and Enterprise about eighteen. A worked example: ten accountants with spreadsheets and a database that uses 3 GB need 3 + 15 + 3 = 21 GB, so the 16 GB of Business Pro is too little and Premium (8 vCPU, 24 GB RAM, 200 GB NVMe) is the smallest plan that fits, at ₼179.90 a month. Enterprise, at ₼215.90, leaves 11 GB in reserve for the month-end. Both prices are with public IP (₼10 a month of each); licences are extra.

Set it up in the right order

Install the role before the business programs, so that they are installed for many users from the beginning.

# session host and licensing roles; the server restarts
Install-WindowsFeature RDS-RD-Server, RDS-Licensing, RDS-Licensing-UI -Restart
# one account per person, never a shared one
New-LocalUser -Name "aysel" -Password (Read-Host -AsSecureString "Password")
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "aysel"

Next, open gpedit.msc and go to Remote Desktop Services → Remote Desktop Session Host. Under Licensing, name the licence server and the mode. Under Session Time Limits, end disconnected sessions after two or three hours, because forgotten ones hold memory and lock documents. Run change user /install before setting up a program by hand and change user /execute afterwards.

Close port 3389 to strangers

A public RDP port is found by scanners quickly and then receives password guesses around the clock. From strongest to weakest:

  1. No public RDP at all. Staff connect to a company VPN first, or the server stands in a private network without its own public address.
  2. An address list. Works when the office has a fixed IP address.
  3. RD Gateway. Wraps RDP in HTTPS on port 443 with a certificate. Worth the extra role for larger teams.
  4. Another port number. Reduces noise in the log and nothing else.
# only the office address and the VPN subnet may open RDP
Get-NetFirewallRule -Group "@FirewallAPI.dll,-28752" |
  Set-NetFirewallRule -RemoteAddress "203.0.113.10","10.8.0.0/24"
# five wrong passwords lock an account for 15 minutes
net accounts /lockoutthreshold:5 /lockoutduration:15 /lockoutwindow:15
# must return 1: Network Level Authentication is on
(Get-ItemProperty "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp").UserAuthentication
# failed logins in the last 24 hours
(Get-WinEvent -FilterHashtable @{LogName="Security";Id=4625;StartTime=(Get-Date).AddDays(-1)} -ErrorAction SilentlyContinue).Count

Try the rule with a second connection before closing the first. If it was wrong, the browser console in the panel still shows the server's screen. Finally, stop using the name Administrator for daily work and keep ordinary staff out of the Administrators group.

Living with accountants on one server

  • Printers. Let people redirect their own printer through RDP; install drivers on the server only when a model refuses to work.
  • Files. Agree on one shared folder. Desktops full of private copies are how two versions of one report appear.
  • Bank tokens. Smart cards redirect well, some USB tokens do not. Test each bank's token before moving the team.
  • Office. Check that the version you own is licensed for shared computers and still supported on your Windows Server release.
  • Updates. Announce a fixed weekly time. quser shows who is connected, logoff 3 ends session 3, msg * Restart in 10 minutes warns everybody.
  • Copies. Export the accounting database every night and store it outside the server, for instance in object storage. It is not done for you.

Remote desktop server questions

How many users can connect to Windows Server by RDP?

Two at a time for administration without extra licences. With the Remote Desktop Session Host role the limit becomes your CALs and the server's memory.

What is the difference between an RDS CAL and a Windows Server licence?

The server licence lets the system run. The RDS CAL lets a person or a device work on its desktop, and you need one for each.

Can staff connect from a Mac or a phone?

Yes. Microsoft's Windows App exists for macOS, iOS and Android, and Linux users have Remmina. A phone is fine for approving a document, not for a day of bookkeeping.

Is changing the RDP port enough to protect the server?

No. Scanners check other ports as well. Use a VPN or an address list, with account lockout and long passwords.

What happens to open programs if the internet drops?

The session stays on the server as disconnected, with programs running. Reconnect and you continue at the same place, unless the time limit you set has passed.

Read next

All VPS pages

This page in other languages: Azərbaycanca · Русский

Servers in Baku, prices in manat

Create an account, top up your balance and order the plan you need.