Before you start
- Run the commands in PowerShell as Administrator (right-click Start > Terminal (Admin)).
- Take a backup or snapshot first. Some steps change Remote Desktop and firewall access.
- Know how to sign in with the VNC console. On a dedicated server, open a ticket if you need KVM/IPMI access.
- Just set up the server? Do first steps on a new Windows Server VPS first.
The checklist at a glance
1. Install all updates
Updates fix security holes that attackers scan for. Run Settings > Windows Update > Check for updates (on Windows Server 2019: Settings > Update & Security > Windows Update), or SConfig option 6, until nothing is left. Restart when asked. Check the last installed update:2. Use strong passwords and remove unused accounts
- Give every account that can sign in a long, unique password (16+ characters from a password manager).
- Keep a second administrator account with a different name, so you are not locked out if
Administratoris. - Remove or disable accounts nobody uses.
Disable-LocalUser -Name "olduser".
3. Set an account lockout policy
Insecpol.msc, open Security Settings > Account Policies > Account Lockout Policy and set the threshold, duration and reset counter. Microsoft’s baseline recommendation is 10 attempts / 10 minutes / 10 minutes (KB5020282). Full steps and the lock-out risks are in protect RDP from brute-force attacks.
4. Lock down Remote Desktop
- Keep Network Level Authentication on:
SConfig> 7 > E > 1. - Limit the Remote Desktop rules to your IPs:
- Better still, reach RDP only through a VPN, or use RD Gateway for teams.
- Optionally move RDP off port 3389 to reduce bot noise: change the RDP port.
5. Keep Windows Firewall on and tight
Check all three profiles are on and block unrequested inbound traffic:Enabled should be True for Domain, Private and Public. If one is off:
-RemoteAddress. To log dropped connections for troubleshooting:
%windir%\system32\logfiles\firewall\pfirewall.log.
6. Keep Microsoft Defender on and updated
Start-MpScan -ScanType QuickScan. See use Microsoft Defender.
7. Make sure SMBv1 is off
SMBv1 is the old Windows file-sharing protocol. It isn’t installed by default on Windows Server 2019 and later, but check, especially on servers built from older images:True, turn it off (no restart needed):
8. Audit and review failed logons
Make sure failed logons are recorded, then check them regularly:9. Remove roles, features and software you don’t use
Every installed service is something to patch and secure. List installed roles and features:Uninstall-WindowsFeature -Name <Name> and uninstall unused programs in Settings > Apps. See install roles and features.
10. Back up, and test a restore
- On a VPS, schedule panel backups.
- Inside Windows, use Windows Server Backup for files and system state: back up a Windows server.
- Restore one backup to check it works. A backup you have never restored is a guess.
Going further: Microsoft security baselines
For a stricter, documented configuration, Microsoft publishes security baselines for each Windows Server release as part of the Security Compliance Toolkit. They are Group Policy settings you can review and apply. Test them on a copy of your server first, because some settings can block Remote Desktop or applications.How to check it worked: a monthly 2-minute audit
True, RDP limited to your addresses (not Any), real-time protection True, SMB1 False, only expected administrators, and a low failed-logon count.
Frequently asked questions
What are the most important steps if I only have 10 minutes?
Install updates, set a strong Administrator password, and limit Remote Desktop to your own IP. Those three deal with the most common automated attacks on a new Windows server.Should I rename the Administrator account?
It makes guessing harder, because bots tryAdministrator first. Rename it only after a second admin account works, and update your saved RDP connections.
Do I need third-party antivirus on Windows Server?
Microsoft Defender Antivirus is built in and enabled by default on Windows Server 2016 and later. Keep it updated. If you choose another product, check how it works alongside Defender.Should I allow ping?
It is optional. Answering ping helps monitoring and troubleshooting and has little security impact; you can limit it to trusted IPs. See allow ping through Windows Firewall.Is the Windows Server checklist different for 2019, 2022 and 2025?
The steps are the same. Menu names differ a little (Settings layout on 2019), and newer releases have newer defaults, which is why each step includes a check command.Related guides
VPS and dedicated server guides
Every guide in this section.
First steps on Windows Server
Set up a new server.
Protect RDP from brute force
Lockout, NLA, IP limits and VPN.
Open a port in Windows Firewall
Inbound rules done right.
Use Microsoft Defender
Scans and updates.
Linux server security checklist
The same for Linux servers.
Checked against Microsoft Learn and Microsoft Support: Configure firewall rules with PowerShell, Set-NetFirewallProfile, SMBv1 detection, Defender Antivirus on Windows Server, KB5020282 and SConfig on 4 November 2026. Commands were not tested on a live Windows server for this page; menu names can differ slightly between Windows Server 2019, 2022 and 2025.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026