Packer stuck at "Waiting for WinRM to become available..."

I’m trying to deploy Windows Server VMWare template with packer.
Everything works till the step “Waiting for WinRM to become available…” becomes.

I tried all different scripts to enable WinRM but nothing seems to help.
Also disabled firewall.

What I noticed is that because the server (domain joined) where I’m running packer on has GPO applied which doesn’t AllowUnencrypted authentication. All Enabled WinRM configurations I notice this is set to True.

Is there method how I can get it working when this is set to False?
image

Thanks!

Hello David, if you can’t get rid of your GPO, you should try to configure an HTTPS listener and then change winrm_port to 5986 into your packer build.

Here’s a great tutorial : Packer and WinRM – mystery resolved – ConfigMgr.nl