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
feita há 7 meses246 visualizações
1 Resposta
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
respondido há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas