How to password reset Windows Server 2016 AWS EC2 ?

Visits: 1366

Prepare your own windows 2016 AMI with a random password for the new copy

If you would like to prepare an AMI for yourself with a new password or for the marketplace

Run:

C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 –Schedule

This tells the rebooted or new instance to produce  new password that will be properly encrypted so you can get at it.

I often look at this page to remember the command, maybe I will remember it one day. By then their will be a new method.

AWS changed this from something else for Windows SVR 2012 R2.

This is different than in ec2 servers like Windows Server 2012 R2.

Remember all of the details to security reset your instance for passing on to clients or for the AWS Marketplace.

Leave a Reply