Hi All,
needed some help with a WinPE2 bootable Ramdisk DVD I am making.
I am using the disc to contain a ghost or imagex image which is dumped to the HDD.
Before the dumping, the HDD is cleaned, partitioned, formatted and made active.
I then want to assign drive letter Z: to the optical drive.
I just have a CMD file which runs diskpart is script mode which selects volume x and assigns Z to it.
This works fine if there is only a HDD and OPTICAL but if there is a card reader on the system there are more volumes and the optical volume id changes all the time.
I have worked around this by adding in user invention where the user specifies the volume id of the optical from list volumes which is given a variable.
But I would really like to have the whole process automated. Someone has told me this could be done using WMI.
So my question after all this is - how can a WMI script be made which selects the correct volume of the optical at any particular time?
Cheers