ImageN00B Posted August 8, 2013 Share Posted August 8, 2013 I am attempting to run a light-touch to unattended imaging process from a USB, however i run into an error.I am running an error during the assignment of a drive letters several lines into my batch script.I have a 2 part imaging system that i call a batch file, and it runs through and is supposed to apply my wim as an image.During the part that it calls to for diskpart as part of my imaging i get an error.The initial batch is as follows:diskpart /s part2.txtcopy u:\test.wim d:x:\imagex.exe /apply d:\test.wim 1 d:d:\windows\system32\bcdboot d:\windowsexitDuring the diskpart it calls to a text file for the diskpart commands noting:select disk 0cleancreate partition primary size=80select partition 1format fs=ntfs label="system" quickassign letter=Cactivecreate partition primaryselect partition 2format fs=ntfs label="windows" quickassign letter=Dselect disk 1select partition 1assign letter=UexitIt goes throught the script all the way until it tries to assign drive letter D, then it throws an error.Virtual Disk Service error:The specified drive letter is not free to be assigned.Thusly bunking my entire automation.Everything works flawlessly if i run the entire diskpart section by hand, however it will not work in a diskpart batch.HELP!?!?! Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now