Your account has been disabled. Please see your system Administrator, How to fix this on AWS Windows EC2 [SOLVED] 💪

yehan anushka
CloudTricks
Published in
2 min readJun 14, 2020

If you are getting this error Your account has been disabled. Please see your system Administrator when you are trying to connect to your AWS windows ec2 instance.

What is the reason for this issue?
This issue occurs when build-in Administrator account is disabled from the OS level.

Can we able to fix this with out login to instance? Yes you can.

How to fix this ?
To solve the issue, you can use Amazon SSM service to run commands on your instance to reset Administrator account status to enabled.

Before we begin need to provide SSM service access to the instance by attaching an SSM Role to the instance.

Step 01
Create a Role with SSM access and attaching to EC2 instance

  • Login to AWS Console and open IAM Service.
  • Select Roles from the Dashboard.
  • Create new Role >> Select Amazon EC2 >> Attach policy ‘AmazonEC2RoleforSSM’ >> Specify Role Name >> Create Role.
  • Go to EC2 Service Dashboard >> Select instance >> Action >> Instance Settings >> Attach/Replace IAM Roles. (please replace the current role with SSM role temporarily to run remote command on instance to enable Administrator user.)
  • Select the role that you just created and Apply.
  • Reboot the instance once to make sure that instance is using new role credentials.

Step 02
Enable the Administrator account and reset password

  • Go to the EC2 Dashboard in the left pane.
  • select Run Command >> Run a command >> Select ‘AWS-RunPowerShellScript’ >> Select targets by manually selecting instances >> Select the instance (Note- If instance does not show up, please wait for 5 mins and refresh the page).
  • Under commands, provide the below commands:
    1. TO enable administrator account.
    “net user administrator /active:yes”
    2. If you want to reset password you can give this command along with the previous one in next line.
    “net user administrator <new_password>”
    (enter your password in between without < > ).
  • Hit Run, to run the script.
  • The Command should show the output as Success.
  • Now try logging in to your instance with Administrator and new password 🏆.

--

--

yehan anushka
CloudTricks

DevOps Engineer at Novigi Pty Ltd | RHCSA | AWSCSAA