I hate that Windows drive letters move around for USB disks.
So how can I reference a disk in diskpart by hardware hash id?
Relative numbering is hard to script, especially if I have drives with same size:
DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 476 GB 0 B * Disk 1 Online 232 GB 0 B
I need something like
DISKPART> SELECT DISK=023BC789DISKPART> SELECT DISK=\\?\Volume{023bc789-0000-0000-0000-100000000000}
of course none of these work.
The disk you specified is not valid.