How can I get the GUI volume IDs using WMI?
2 answers
On Windows 2003 and up (not XP!) You can use: Win32_Volume class .
I don't think there is a way to get the guid with wmi in xp and below. Not sure.
albert refers to a call to GetVolumeNameForVolumeMountPoint . There is a sample in the link.
+1
source to share