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
gefragt vor 7 Monaten246 Aufrufe
1 Antwort
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
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen