- 최신
- 최다 투표
- 가장 많은 댓글
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