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

Lesedauer: 2 Minute
0

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 check box for the instance, and then expand the Actions dropdown list. If you're using the old console, then choose Get Windows Password. If you're using the new console, choose Security, 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.


Related information

Getting started with Amazon EC2 Windows instances

Connecting to your Windows instance

AWS OFFICIAL
AWS OFFICIALAktualisiert vor 2 Jahren