Skip to main content
Question

Windows sysprep not working

  • August 20, 2021
  • 2 replies
  • 1704 views

Creating a Windows VM from clone and added custom xml file . The settings defined in xml file are not getting applied after VM is created.Can see the xml file mounted in E:\ drive.

Tried creating the VM with Prism element and powershell , same result.  

Logging into VM console and running sysprep manually pointing to unattended.xml file works.

Windows OS version is 2016 standard. 

AHV hypervisor. 

This topic has been closed for replies.

2 replies

rohan.saksena-55595
Nutanix Employee
Forum|alt.badge.img+3

Hello Shivadecode,

 

We should be able to SysPrep Windows VM via following method. Let me now, if you are facing any issues.

 

Reference Link: 

 

Please let me know, if you are still facing issues !

Happy Troubleshooting !!


  • Adventurer
  • 4 replies
  • August 27, 2021

Hello,

Did you stop your VM template with the sysprep command ?

sysprep /oobe /generalize /shutdown /mode:vm 

 

In that way, at the next boot, the operating system will check for the xml.

Be sure to make a snapshot before your sysprep command if you need to change anything in the template in the future.

Matthieu