Remote Desktop Says the Account Is Locked
If Remote Desktop answers The referenced account is currently locked out and may not be logged on to, your password is not the problem. Bots on the internet tried wrong passwords on the Administrator account so many times that Windows blocked it for a while.
This happens on Windows Server 2025 (and on 2022 when the lockout policy has been switched on): since the October 2022 updates, Windows can lock the built-in Administrator account after failed sign-ins (Microsoft KB5020282).
1. Sign In Through the Console
The lockout blocks network sign-ins such as Remote Desktop. Signing in on the server's own screen still works. Open the console from the Client Area:
- VPS: open Information → Console in your Client Area (see the Console Access).
- Dedicated server: use noVNC Remote Management or IPMI Remote Management.
On the Windows sign-in screen, send Ctrl+Alt+Del from the console toolbar and sign in as Administrator with your password.
The lock ends by itself after the lockout duration set on the server (often 10 to 15 minutes), and a restart from the Client Area may also clear it. But the bots keep trying, so the account is often locked again within minutes. Use the console and change the settings below.
2. Check the Lockout Settings
Open PowerShell and run net accounts. Lockout threshold: Never means the account is never locked. A number means it is locked after that many wrong passwords.
To change it, press Windows key + R, type secpol.msc and open Account Policies → Account Lockout Policy.
- Allow Administrator account lockout (shown on Windows Server 2025 and on updated 2022 servers): set it to Disabled so that bots cannot lock out the Administrator account. Other accounts keep the lockout.
- Or set Account lockout threshold to
0: no account is locked any more.
3. Protect Remote Desktop Instead
Switching the lockout off for the Administrator account is only safe with a strong, unique password (16 characters or more). Better still, let only your own addresses reach Remote Desktop: Allow Remote Desktop Only From Your IP Addresses. See also How to Change the Administrator Password.


