==> googlecompute.vm: . : The term
==> googlecompute.vm: 'c:/Windows/Temp/packer-ps-env-vars-62f10fbc-5827-c4b2-8272-3b1793e96a67.ps1'
==> googlecompute.vm: is not recognized as the name of a cmdlet, function, script file, or operable
==> googlecompute.vm: program. Check the spelling of the name, or if a path was included, verify
==> googlecompute.vm: that the path is correct and try again.
==> googlecompute.vm: At line:1 char:138
==> googlecompute.vm: + ... lyContinue'};.
==> googlecompute.vm: c:/Windows/Temp/packer-ps-env-vars-62f10fbc-5827-c4b2-8272-3b1793 ...
==> googlecompute.vm: +
==> googlecompute.vm: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> googlecompute.vm: + CategoryInfo : ObjectNotFound: (c:/Windows/Temp...b1793e96a67.p
==> googlecompute.vm: s1:String) [], CommandNotFoundException
==> googlecompute.vm: + FullyQualifiedErrorId : CommandNotFoundException
NOTE The image gets built and it works but I would like to get rid of that error
Overview of the Issue
I am creating a Windows GCP Image and after invoking the GCP Sysprep
it returns a weird Powershell error
NOTE The image gets built and it works but I would like to get rid of that error
Reproduction Steps
gcp.pkr.hcl
gcp.build.pkr.hcl
Plugin and Packer version
packer
1.8.3
The error happened after provisioner
GCPSysPrep -NoShutdown
command is executed but there are not more scripts to be called.