Sysprep customize with drive letter | Nutanix Community
Skip to main content

Sysprep customize with drive letter

  • September 29, 2023
  • 4 replies
  • 248 views

Forum|alt.badge.img+1
  • Adventurer
  • 7 replies

When we add sysprep for windows vm to booot and configure windows as defined in xml file.

how we can set to use only specific drive letter for sysprep cidata drive to execute and complete the sysprep script.

This topic has been closed for comments

4 replies

JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1340 replies
  • September 29, 2023

Cant you use “%~dp0” ??? 

 

Some more information: https://www.geoffdoesstuff.com/windows-batch-scripts


Forum|alt.badge.img+1
  • Author
  • Adventurer
  • 7 replies
  • September 29, 2023

in sysprep xml file how we can define ?

 

we use sysprep during vm build so it will pick D drive by default for sysprep cidata so i need to make changes


JeroenTielen
Forum|alt.badge.img+8

Maybe I'm missing the exact issue here. 

 

You have a virtual machine with 2 disks???

And the second disk is added as the D: drive??

And you want that drive to have a different drive letter??


Jamie Terrell
Forum|alt.badge.img+2

You should be able to run custom scripts from the unattend file

If the drive isn’t a local disk you would need to mount/connect to where the scripts are somehow, unless I am also missing something from your question. 

Also I have not had to time mess around with this much but OSDCloud looks very interesting.