A freshly installed Windows Server is reachable from the internet within minutes, and Remote Desktop is one of the most attacked services there is. The first hour on a new server is the best time to secure it and set it up the way you will want it for years. This checklist covers Windows Server 2019, 2022 and 2025 on a VPS or dedicated server.
1. Connect and change the password
Connect with Remote Desktop using the IP address and Administrator password from your welcome email — see connecting to Windows Server with Remote Desktop.
Change the password immediately: press Ctrl+Alt+End (inside an RDP session) and choose Change a password. Use a long passphrase (16+ characters) that you do not use anywhere else.
2. Create a separate administrator account
Bots target the username Administrator. Create your own admin account:
- Server Manager → Tools → Computer Management → Local Users and Groups → Users.
- Create a user with a non-obvious name and a strong password.
- Add it to the Administrators and Remote Desktop Users groups.
- Log out, log in as the new user and confirm everything works.
- Then disable the built-in Administrator account (or at least rename it in Local Security Policy → Security Options → “Accounts: Rename administrator account”).
PowerShell alternative:
$pw = Read-Host -AsSecureString "Password"
New-LocalUser -Name "opsadmin" -Password $pw -PasswordNeverExpires
Add-LocalGroupMember -Group "Administrators" -Member "opsadmin"
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "opsadmin"
3. Install all updates
Settings → Windows Update → Check for updates, install, reboot, and repeat until no updates remain. A new image can need several rounds. Then set active hours and consider scheduling restarts outside business hours (Advanced options).
From PowerShell (Server 2025 and recent builds also offer Install-WindowsUpdate via modules; the GUI is fine for a first run):
sconfig # menu option 6 installs updates on Server Core and Desktop editions
4. Secure Remote Desktop
- Network Level Authentication (NLA) on: System Properties → Remote → “Allow connections only from computers running Remote Desktop with Network Level Authentication”.
- Account lockout policy to stop password guessing.
- Restrict RDP to your IP in the firewall if your IP is fixed.
- Optionally change the RDP port.
All of this is explained step by step in securing RDP on Windows Server.
5. Check the firewall
Windows Defender Firewall with Advanced Security should be on for all profiles. Check inbound rules and disable anything you do not need — for example File and Printer Sharing on a public server.
Get-NetFirewallProfile | Select Name, Enabled
Get-NetFirewallRule -Direction Inbound -Enabled True | Select DisplayName, Profile | Sort DisplayName
Open only what you need, such as 80/443 for a web server:
New-NetFirewallRule -DisplayName "HTTP/HTTPS" -Direction Inbound -Protocol TCP -LocalPort 80,443 -Action Allow
6. Microsoft Defender Antivirus
Defender is built in and enabled on Windows Server 2016 and later. Check it is running and updating:
Get-MpComputerStatus | Select AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdated
For database or application folders with heavy I/O, vendor documentation often recommends specific exclusions — add only those, never whole drives.
7. Time zone and time sync
Get-TimeZone
Set-TimeZone -Id "China Standard Time" # UTC+8 (Beijing, Hong Kong, Singapore)
w32tm /query /status
w32tm /resync
Use “Tokyo Standard Time” for Japan or your business’s time zone. Logs, scheduled tasks and trading software depend on correct time.
8. Server name
Give the server a meaningful name (Settings → System → About → Rename this PC, or Rename-Computer -NewName "HK-WEB01" -Restart). Do it before installing roles like SQL Server, which store the computer name.
9. Language and keyboard
Windows Server images are usually English. To add Chinese (Simplified or Traditional) display language and input methods:
Settings → Time & Language → Language → Add a language, choose 中文(简体,中国) or 中文(繁體,香港特別行政區), and include the language pack if you want the interface translated. Set it as the display language and sign out. Non-Unicode programs that show garbled Chinese text need Control Panel → Region → Administrative → Change system locale.
10. Performance settings
- Power plan: set to High performance (
powercfg /setactive SCHEME_MIN). - Visual effects: System Properties → Advanced → Performance → “Adjust for best performance” makes RDP sessions snappier over long distances.
- Page file: leave “Automatically manage” on unless you have a specific reason.
- Server Manager at logon: disable it if you find it slow (Server Manager → Manage → Server Manager Properties).
For RDP over long or lossy connections (for example from mainland China to a US server), lowering the colour depth and turning off wallpaper in the RDP client’s Experience tab also helps.
11. Disks
If your server has additional disks, initialise and format them in Disk Management (diskmgmt.msc) or PowerShell:
Get-Disk | Where PartitionStyle -eq 'RAW' |
Initialize-Disk -PartitionStyle GPT -PassThru |
New-Partition -AssignDriveLetter -UseMaximumSize |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "Data" -Confirm:$false
Keep applications and data off the system drive where practical; it makes reinstalls and backups easier.
12. Backups
Windows Server Backup is a free feature:
Install-WindowsFeature Windows-Server-Backup
Then configure a schedule in wbadmin.msc. A backup on the same disk does not protect against disk failure or ransomware — copy important data to another server or storage location as well. You are responsible for your own data backups.
Optional: install roles
| Need | Role / software |
|---|---|
| Websites | IIS — see hosting a website with IIS and SSL |
| Multiple IPs | See adding IP addresses on Windows Server |
| Trading platforms (MT4/MT5) | Install from the broker; see forex VPS |
| Databases | SQL Server Express (free, size-limited) or full SQL Server with licence |
Licensing
Make sure the Windows Server installation is properly licensed for your use. Some images are evaluation editions that expire after 180 days; check with slmgr /dlv and plan to reinstall or convert to a licensed edition before expiry. See Windows hosting for the editions offered.
Checklist
- Password changed, own admin account, built-in Administrator disabled/renamed
- All updates installed, restart schedule set
- NLA on, lockout policy, RDP restricted if possible
- Firewall on, unnecessary inbound rules disabled
- Defender running and updating
- Time zone and time sync correct
- Data disks formatted, backups configured
- Licence / evaluation status checked