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:\ProgramData\Amazon\EC2-Windows\Launch\Scripts\InitializeInstance.ps1 : 
    amazon-ebs: term 
    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: + 
    amazon-ebs: -Schedul ...
    amazon-ebs: + 
    amazon-ebs:     + CategoryInfo          : ObjectNotFound: 
    amazon-ebs:    s1:String) [], CommandNotFoundException
    amazon-ebs:     + FullyQualifiedErrorId : CommandNotFoundException
==> amazon-ebs: Stopping the source instance... 

Has anyone else run into this error ?


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 
For more options, visit https://groups.google.com/d/optout.

Attachment: Windows 2016 Base.json
Description: application/json

Reply via email to