- Newest
- Most votes
- Most comments
Hello.
Will sysprep run if I shut down my computer with the command below?
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/stop-computer?view=powershell-7.4
Stop-Computer
If i use this PowerShell command Stop-Computer and shutdown my instance and take a AMI of it It's showing the bellow error
Password is not available. The instance was launched from a custom AMI, or the default password has changed. A password cannot be retrieved for this instance. If you have forgotten your password, you can reset it using the Amazon EC2 configuration service.
Hello all, I have manually run the following PowerShell script to prepare the machine without using Sysprep, and it works:
Start-Process -FilePath "$env:ProgramFiles\Amazon\EC2Launch\EC2Launch.exe" -Argument 'reset' -Wait
Stop-Computer
However, when I try to automate this process using Packer, I am unable to RDP into the machine. Can anyone help me resolve this issue?
Thanks, Suriya
Relevant content
- asked a year ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
No i think so
If i use this PowerShell command Stop-Computer and shutdown my instance and take a AMI of it It's showing the bellow error
Password is not available. The instance was launched from a custom AMI, or the default password has changed. A password cannot be retrieved for this instance. If you have forgotten your password, you can reset it using the Amazon EC2 configuration service.