1

After syspreping a machine all drive letters are reassigned. How do I prevent this from happening or automatically reasign drive letters after sysprep?

Eric Hazen
  • 21
  • 1
  • 5

1 Answers1

2

you can use diskpart for that. Create text file that contains the diskpart command and then use diskpart /s mydiskpartscript.txt

the diskpart text file would be:

select volume 2
assign letter=D
select volume 3
assign letter=R
exit
Mathieu Chateau
  • 3,185
  • 16
  • 10
  • Correct, but I'm looking to automate this process. If others interested in what Mathieu is talking about you can look at the following links for more info. http://forums.techarena.in/server-deployment/491210.htm http://technet.microsoft.com/en-us/library/cc766465(WS.10).aspx I found the part I was looking for: Basically under sysprep.ini I'll add the following command, which will reference the diskpart.exe command like you mentioned. [GuiRunOnce] Command0 = C:\AssignDriveLetters.cmd – Eric Hazen Feb 04 '10 at 18:08
  • sorry , i should have explained the guirunonce in sysprep too – Mathieu Chateau Feb 04 '10 at 18:29