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 個月前檢視次數 246 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南