dcopenhaver
Posts: 18
Score: 0 Joined: 8/1/2008 Status: offline
|
I need to use a wmi query to get the size of a hard drive and branch some logic based on it... this part is no problem. However my script needs to work when there is more than one hard drive present... I was thinking I could use the index property but I would need to know how windows decides to assign this property to the drives? eg. say there will always be 2 or more volumes, one for the OS to be installed on, and the others for data. I need to be sure I'm working with the one that the OS is to be installed on. All of this will be taking place from within a winPE environment prior to OS installation. I was thinking that maybe the order in which the volumes are created via the raid controller may dictate the order that they are assigned the index value? not even sure I'm asking this well... basically I need to be sure I'm working with the right drive, which will be the one to install the OS on, but I don't have any criteria that I can think of to assure this.
|