I have the Acronis TrueImage Workstation 9.1 plugin installed in BartPE. I copied trueimagecmd.exe to the plugin directory so now I have command line abilities. I'm trying to automate the process so that when the cd is inserted, it will automatically image the hard drive. The problem I'm running into is automatically determining what hard drive to use. I can't rely on the contents of the hard drives, as the hard drives may be blank or corrupt, and there may be usb hard drives plugged in that would change the hard drive number so it is no longer 1. I've figured out how to parse diskpart to find a hard drive number based on hard drive size, but diskpart's number for the hard drives doesn't correspond to acronis. I've looked at the acronis list command, but it seems to size the hard drive by sectors and if there are multiple partitions it splits it up over multiple lines, making parsing very difficult. Does anyone know of a good way to automatically determine what the primary hard drive is (preferably based on location on the IDE or SATA bus) and convert that number to correspond with acronis' numbering scheme? All the computers this will be used on will only have one logical internal drive, any additional drives would be usb external. Thanks in advance for your suggestions.