Windows – Automatically set drive letters after SysPrep

hard drivesysprepwindows

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

Best Answer

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