@coolsport00 Hello, I don't know the VMware feature you're talking about.
I would use Packer https://github.com/vatesfr/packer-plugin-xenserver and Cloud Base init https://cloudbase-init.readthedocs.io/en/latest/intro.html to build a Windows VM template. The sysprep would be run at the end of the packer for example using the provisioner powershell or in the shutdown_command
NB: do not forget to deploy guest tools inside the template.
@dinhngtu might have also suggestions