When connecting to a Windows instance through Remote Desktop, it prompts "For security reasons, this user account has been locked due to too many login attempts or password change attempts."

Possible causes and solutions for the error "For security reasons, this user account has been locked due to too many login attempts or password change attempts" when connecting to a Windows instance through Remote Desktop.

Problem description:
When using Remote Desktop to connect to an ECS instance in a Windows system, an error message "For security reasons, this user account has been locked due to too many login attempts or password change attempts" is prompted. The specific error message is as shown in the figure below.



problem causes

The user lock policy is configured in the ECS instance system group policy of the Windows system. If you enter an incorrect password too many times when logging in, the account will be locked, making it impossible to log in to the remote desktop.

solution

You can modify the Windows instance Group Policy account lockout threshold to 0 to solve this problem. This article uses the Windows Server 2016 operating system as an example. The steps for other operating systems are similar.

  1. Connect to Windows instance via VNC.

  2. Right-click Start and click Run(R) . Enter the command in the Run dialog box and clickgpedit.msc OK to enter the Local Group Policy Editor page.

In the Local Group Policy Editor page, select Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy.

On the Account Lockout Policy page, double-click the Account Lockout Threshold to enter the Account Lockout Threshold Properties window.

In the Account Lock Threshold Properties window, change the account non-lock threshold to 0 and click OK.

Use Remote Desktop to connect to the Windows instance again and ensure that the connection can be made normally.

Guess you like

Origin blog.csdn.net/qq_42179736/article/details/132662442
Recommended