Skip to content

Unable to log into EC2 windows instance through RDP with the correct password(Had the correct private keys)

0

When I tried to access the instance thru the .rdp file and even when I input the correct password obtained from the aws instance details by uploading the correct .pem file then copying the password correctly, it didn't work. I tried to login again after 30 minutes and even restarted my Mac but it still couldn't login and had the error below.

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.

Error code: 0xd07

asked 2 years ago678 views

1 Answer
1
Accepted Answer

If you have changed the Administrator password since the first launch then the PEM files and stored administrator password will no longer work. If the instance is registered with SSM, you can reset the Password and re-login through fleet manager or use this script via the PS Console

$Password = Read-Host -AsSecureString
$UserAccount = Get-LocalUser -Name "Administrator"
$UserAccount | Set-LocalUser -Password $Password
EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.