I need settings to do two things - via Registry or otherwise. (This is for a Windows 10 Pro PC, acting as my "server").

  1. Registry settings to lockout Account after specified number of login attempts via Remote Desktop, say 5.

  2. Local logon should not be locked. i.e. If you keyboard is plugged directly to the PC, you should be able to login to the account.

Last time this happened I had to resort to Linux to unlock the PC as the account remained locked.

UPDATE. the answer to part 1) I already know, because that's how i configured the PC.


  • 1
    What are you findings thus far? What research have you done? What have you tried, and where are you failing? – spikey_richie Mar 15 '19 at 9:34

You cannot specify separate lockout settings for access via RDP vs. the physical console. Account lockout settings apply to the account, not the logon method.

Perhaps a way to achieve your goal would be to have a second admin user account configured on the machine that is denied access through Remote Desktop (thus mitigating the possibility of getting locked out) and use that account to unlock the first when required.

Alternate Solution

If you have the Pro or Enterprise version of Windows, you can configure the account lockout duration such that locked out accounts are automatically unlocked after a specified amount of time:

  1. In Start search and run the Local Security Policy app.
  2. Navigate to Account Policies/Account Lockout Policy.

    enter image description here

  3. Set the Account lockout threshold setting to a non-zero value (otherwise you cannot configure the other settings in this branch).
  4. Configure the Account lockout duration setting as desired.
| improve this answer | |
  • Both of the alternate suggestions I made require the Pro (or better) version of Windows. If you have this, edit your original question to say so, then ping me and I'll edit my answer to explain how to implement them. – I say Reinstate Monica Mar 15 '19 at 11:27
  • hey Twisty, I've accepted your answer, and can confirm now it is Win 10 Pro because i can now login (Yes, Linux to the rescue yet again). Under "Local Users and Groups\Remote Desktop Users" i have already verified i have the one Account for RDP purposes. I also have a second Admin account, but i am not sure how it got locked out, or where is the setting to lock it up after x tries. Please update your answer to explain how to do this. – joedotnot Mar 16 '19 at 10:00
  • Answer edited as requested. – I say Reinstate Monica Mar 17 '19 at 23:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.