Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How do I find out about the driver letter of a usb drive by script, given the DeviceID

$
0
0
Hi all,

I am wondering if it is possible by script to find out what the drive letter of a usb drive might be.

I have just inserted my USB stick into a socked and the operating system displays that the drive was recognized and that the drive letter is F:.

I already know, how USB devices can be listed by WMI script, but how do I extract the drive letter of a USB storage device.

The DeviceID is known, where do I find the drive letter given the DeviceID ?

Disk drive
DeviceID: USBSTOR\DISK&VEN_SAMSUNG&PROD_YP-U2&REV_0100\4002FDCCE0E4D094&0
Service: disk
Status: OK
SystemName: MEINER
Caption: Samsung YP-U2 USB Device


All help is welcome

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>