Can you help me to understand how can I use winRM cleanup script in my packer manifest. I have a requirement to run both sysprep and winRM cleanup before packer completes the windows build. It seems like they both can't be achieved by packer because when I run sysprep and reboot the VM first, packer doesn't recognize its winRM connection and ends up failing that it earlier connection was closed forcefully . If I run winRM cleanup first and I can't run any commands since packer uses winRM .
Hey Stefan,
Can you help me to understand how can I use winRM cleanup script in my packer manifest. I have a requirement to run both sysprep and winRM cleanup before packer completes the windows build. It seems like they both can't be achieved by packer because when I run sysprep and reboot the VM first, packer doesn't recognize its winRM connection and ends up failing that it earlier connection was closed forcefully . If I run winRM cleanup first and I can't run any commands since packer uses winRM .