- Newest
- Most votes
- Most comments
Hi,
Yes, there is a better solution: you can have an automatically generated WIndows admin password and retrieve it via CLI
For that get-password-data
command use https://docs.aws.amazon.com/cli/latest/reference/ec2/get-password-data.html.
See examples at bottom of page.
Any other language SDK can also do it via https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html
Best,
Didier
Hello.
You can change the password to any password you like by running the following command with the user data when starting EC2.
<powershell>
net user Administrator "New Password"
</powershell>
Alternatively, if you use Sysprep on the Windows OS to shut down when creating an AMI, you can change the initial password for Administrator each time.
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch-v2-settings.html
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago