New
#11
If you can determine via your script what the disk and partition numbers are you could use diskpart by stacking the responses then calling diskpart, something like this: (swiped from a bat file from @hsehestedt):
(echo select disk %DiskID%
echo select partition 1
echo assign letter=Q
echo select partition 2
echo assign letter=R
echo exit
) | diskpart > nul