I don't know what the wsus-client cookbook is but looking at your 
packer.json you are just calling a powershell script. Unfortunately WUA 
cannot be called in a WinRM logon as it is restricted by Microsoft. People 
usually get around this by running it under a scheduled task as it runs 
under a batch logon which can access WUA.  The elevated_command is designed 
to do this for 
you https://www.packer.io/docs/provisioners/powershell.html#execute_command.

-- 
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/82d08529-577d-4215-8c0c-6751236a73b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to