# Uses SysPrep for Windows VM (depends on ‘guest\_id’ parameter match ‘win’) with PyVmomi.

**URL:** <https://forum.ansible.com/t/uses-sysprep-for-windows-vm-depends-on-guest-id-parameter-match-win-with-pyvmomi/34873>\
**Category:** Ansible Project\
**Tags:** windows, vmware\
**Created:** [March 27, 2021, 7:01pm UTC](https://forum.ansible.com/t/uses-sysprep-for-windows-vm-depends-on-guest-id-parameter-match-win-with-pyvmomi/34873 "2021-03-27T19:01:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [March 27, 2021, 7:01pm UTC](https://forum.ansible.com/t/uses-sysprep-for-windows-vm-depends-on-guest-id-parameter-match-win-with-pyvmomi/34873/1 "2021-03-27T19:01:43Z")

</div>

Hello

Below is my playbook for the vm creation with template which is windows server 2019

I saw notes for the module wrt sysprep in :  
[https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_guest\_module.html](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_module.html)

" Uses SysPrep for Windows VM (depends on ‘guest\_id’ parameter match ‘win’) with PyVmomi."

But nothing in

[https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_guest\_module.html](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_module.html)

So anyone can comment :

What happens if the template sysprep is done ?  
What happens if the template sysprep NOT done ?

Playbook :
