How to Change default password for aws ec2 instance remote desktop connection

204 Views Asked by At

I have a Windows AWS EC2 instance. I can connect to my windows server using Remote Desktop with password using the Decryption of aws ec2 key pair. Now my question is, how do i change the password ? Do i delete the old key pair and create new one ? or is there any ways that i don't need to stop my instance.

Thank You

1

There are 1 best solutions below

3
John Rotenstein On

When a new Amazon EC2 instance is launched with the Windows operating system, a script generates a random password for the Administrator user. This ensures that nobody else can login to your instance.

It then encrypts the password so that it can only be decrypted by somebody who has the GetPasswordData permission.

You are welcome (and encouraged!) to change this Administrator password when you first login. You can If you are in a company, then it would be best to connect the instance to your Active Directory server so that you can login using your normal corporate login.

Random example: How to change the password in Windows Server 2022 - FineRDP