Obtain Administrator Password
Locate the ‘cyent-key-pair.pem’ key file that you created in the Create New Key Pair section above. To retrieve your administrator password, you need to specify both your “InstanceId” and your key file.
Note: The placeholders in the code that are tagged by "<>" should be revised to match your information such as IP address, AMI ID, Instance ID, etc.
aws ec2 get-password-data --instance-id <InstanceId> --priv-launch-key <your cyent-key-pair.pem>
If PasswordData is empty (as shown below), AWS is still provisioning your EC2 instance. Wait 5-10 minutes and repeat the command.
![](../../__attachments/44856542143/image21.png?inst-v=f9e056c9-f985-428d-a0ce-85f560ea1d91)
Once EC2 provision is complete, the PasswordData string is the Windows’ administrator password for your EC2 instance.
![](../../__attachments/44856542143/image22%20(1).png?inst-v=f9e056c9-f985-428d-a0ce-85f560ea1d91)
Next (Get Public IP Address of EC2 Instance)>