AWS EC2 – RDP and PSRemoting with Private Keys

If you ever had to login to an EC2 instance in AWS which wasn’t AD joined, you probably know how to fetch the generated admin password. It is not hard, but requires some extra steps to actually open a working WinRM session or even copy-pasted passwords to login via RDP. Wouldn’t it be better to login to these instances by passing directly your EC2 Key-Pair?

CloudRemoting is my new PowerShell module that tries to solve these management tasks similarly as ssh -i <privatkey> does, but for rdp and for pssession.