vSphere Clone configure winRm before packer wait winRm become available

Hello,

We work with vSphere clone.
We have an existing template with no winRm config done.

In the order when we launch a packer build the process :

  • Clone template
  • Reconfigure machine
  • Load floppy files
  • Get an ip
  • Wait winRm to become available

How we can config winRm layer before packer wait winRm to become avaible please?

Thx for your help.