How to retrieve password of EC2 image created from Packer

I’m able to create image using Packer (WinRM HTTPS) and spinup the server using custom image but cannot generate local administrator password using pem file.

Can anyone help me on this ?