Windows RDP Lockout

When connecting to a windows RDP server, i got error

We couldn’t connect to the remote PC because the user account has been locked due to too many sign in or password change attempts. Wait a little while, and then try connecting again, or contact your network administrator for assistance.

The error is because someone tried to login to RDP server with wrong password too many times. If the server is availble on internet, it can be a bruteforce attack. To prevent this, you can only allow whitelisted IPs connect to port 3389 using firewall. Changing RDP port can also help.

To unblock, you need to login as a different user or login via the console.

Press Win + R, type secpol.msc.

Navigate to:

Security Settings → Account Policies → Account Lockout Policy

Change “Account lockout threshold” to a higher number (e.g., 10 failed attempts) or set to 0 to disable lockout entirely (less secure).

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *