When you say it works perfectly with other images can you share some more 
info. I see you are manually adding the WSMan listener but one step you are 
missing is to set the LocalAccountTokenFilterPolicy [1] setting. This must 
be set to not filter the token on network logons for WinRM to work as only 
Administrators can connect to a WinRM endpoint by default. It would be 
great if you could share the debug logs of a Packer run as that usually 
logs WinRM attemps and if it even attempted to connect.

Some other brief notes when looking at your user data;


   - You are setting AllowUnencrypted = $true even though you are running 
   over HTTPS, this is not needed and really shouldn't be set unless you want 
   to run over HTTP
   - You are setting TrustedHosts on the Client side, this isn't needed for 
   Packer unless that's what you want done as part of your image build
   

[1] - 
https://support.microsoft.com/en-us/help/951016/description-of-user-account-control-and-remote-restrictions-in-windows

Thanks

Jordan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/99265741-ffdc-476e-ae20-bfdf7414ef96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to