Cant login VM on hosted cloud "user account has been locked because there were too many login attempts"

 We recently encountered a recurring issue and wanted to share our resolution steps with the community.

 
Issue:
 
Despite restarting the environment from both the Azure portal and LCS and resetting the password for the builtin\Admin user, we faced a persistent issue. Whenever we logged in using the builtin\Admin account, the problem remained.
Solution:
Here’s how we resolved it:
  1. Log in with an Alternate Account:
    • Open RDP using the builtin\User account.
  2. Run Command Prompt as Admin:
    • Open the Command Prompt with administrative privileges using the same credentials provided in LCS.
  3. Modify Local Computer Policy:
    • Run the following command to open the Local Group Policy Editor: gpedit.msc
  • Navigate to: Computer Configuration -> Windows Settings -> Security Settings -> Account Policies -> Account Lockout Policy.
  • Change the value of Account lockout threshold to 0.
  • Click Apply and OK.
  • In the Command Prompt, run: gpupdate /force
· Update Group Policy and Unlock Account:
  • In the Command Prompt, run: compmgmt.msc
  • Go to Local Users and Groups -> Users.
  • Find the builtin\Admin user, right-click, and select Properties.
  • Uncheck Account is locked out and click OK.

These steps resolved the issue for us. Hopefully, this helps anyone facing similar problems. If you have any further questions or alternative solutions, feel free to share!

Comments

Popular posts from this blog

Azure BLOB storage with Dynamics 365 FnO X++

Send Email from Ax / D365 FnO using X++

Import Files from Blob storage using X++ - D365 FnO