How do I retrieve my Windows administrator password after launching an instance?

Last updated: 2020-09-24

I need to retrieve my Windows administrator password after launching an Amazon Elastic Compute Cloud (Amazon EC2) instance. How can I do that?

Resolution

You can retrieve your initial administrator password by using the Amazon EC2 console or the AWS Command Line Interface (AWS CLI).

Retrieve your initial administrator password using the Amazon EC2 console

Note: This method requires an Amazon EC2 key pair.

Follow these steps:

  1. Open the Amazon EC2 console, and then choose Instances.
  2. Select the instance, choose Actions, and then choose Get Windows Password.
    Note: It can take a few minutes for this option to be available after you first launch a new instance.
  3. Choose Browse, select your key pair file, and then choose Open.
    -or-
    Paste the contents of your key pair into the text box.
  4. Choose Decrypt Password.

Retrieve your initial administrator password using the AWS CLI

Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.

Use the get-password-data command. For example syntax, see Examples.


Did this article help?


Do you need billing or technical support?