Windows PE 3.0 detect what device it was booted from
- by Brian
I am creating a custom boot disk for work using Windows PE 3.0. I need to be able to tell what drive the system was booted from. it may be a CD, or a USB Flash drive. In the past, I have looked for a file on the root of the drive that holds some of our custom configuration. however that is getting a bit messy.
Basically, in addition to Windows PE, the drive or disk also has other scripts and tools. I need to remount that USB drive or DVD to the U:\ Drive, to keep thing consistent.
Basically,
Diskpart.exe
Select Volume $X
assign Letter=U
Exit
I just need to figure out how to determine that nasty little $X.