ec2-get-password instanceId -k windows-keypair
instanceId
windows-keypair
Retrieves and decrypts the administrator password for the instances running Windows.
You must specify the key pair used to launch the instance.
The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance.
The password is encrypted using the key pair that you provided and stored within the <password> tags of the console output.
There is no SOAP or Query version of the ec2-get-password command.
ec2-get-password
The ID of the instance.
Example: i-9b76d0f3
i-9b76d0f3
Yes
The file that contains the private key used to launch the instance.
Example: windows-keypair
Amazon EC2 returns a table that contains the following information:
The Windows administrator password
Amazon EC2 displays errors on stderr.
stderr
This example returns the administrator password for the i-2574e22a instance.
i-2574e22a
PROMPT> ec2-get-password i-2574e22a -k windows-keypair q96A40B9w
PROMPT>
q96A40B9w
ec2-describe-instances
Submit feedback about this site to: