Change the password of EC2 window Server 2019

0

Hi Team,

How can we change the administrator password of EC2 window Server 2019 in every week by runbook/SSM in AWS ?

If I want to fetch the password from pem file from the AWS console after changing the password then can easily retrieve.

I want to change the password for safe side in every week automatically.

Thanks, Anuj Gupta

AnujG
已提问 7 个月前247 查看次数
1 回答
0

It should be possible to do this by creating a custom document containing a step to run a PowerShell script that changes the password and copies it off the Windows host. Then you could have a step that stores it in an S3 bucket for later use. The runbook can be configured to run on a schedule using Change Calendar. https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar.html https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-action-executeAwsApi.html (For putting an object in an S3 bucket) https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-action-runcommand.html (or running a custom shell/powershell script)

I would recommend also consulting with the EC2 Windows team about this and ensuring there are no security concerns in this process

AWS
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则