Hi, I am trying to build a Windows 2016 AMI for AWS, attached is my build.json file. I am getting an error when trying to run "InitializeInstance.ps1 -Schedule" as inline commands.
==> amazon-ebs: Provisioning with Powershell... ==> amazon-ebs: Provisioning with powershell script: C:\Users\ADMINI~1\AppData\Local\Temp\2\packer-powershell-provisioner933417395 amazon-ebs: C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 : The amazon-ebs: term 'C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1' amazon-ebs: is not recognized as the name of a cmdlet, function, script file, or operable amazon-ebs: program. Check the spelling of the name, or if a path was included, verify amazon-ebs: that the path is correct and try again. amazon-ebs: At C:\Windows\Temp\script-5acaf9bd-4306-241c-77fd-d6adb74e86bd.ps1:1 char:1 amazon-ebs: + C:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 amazon-ebs: -Schedul ... amazon-ebs: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ amazon-ebs: + CategoryInfo : ObjectNotFound: (C:\ProgramData\...izeInstance.p amazon-ebs: s1:String) , CommandNotFoundException amazon-ebs: + FullyQualifiedErrorId : CommandNotFoundException amazon-ebs: ==> amazon-ebs: Stopping the source instance... Has anyone else run into this error ? James -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/fd5f6f6f-224f-415a-adc1-d48330476bfa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Windows 2016 Base.json