2

When viewing cluster disk properties in Failover Manager or the physical path to VHD's in the settings of a VM in Hyper-V Manager the location is displayed by GUID. Is there a quick way find out which GUID is mapped to which drive letter with powershell?

Colyn1337
  • 2,387
  • 2
  • 22
  • 38

1 Answers1

2

To view the current mapped drives and their respective device id's run the following script:

Get-WmiObject win32_volume | select name,deviceid | ft -AutoSize

The output displays two columns, the first the drive letter, and the second is the device ID displaying the GUID.

To find the drive letter for a specific GUID try this:

Get-WmiObject win32_volume | Where-Object {$_.DeviceID -like "*GUID*"} | select name
Colyn1337
  • 2,387
  • 2
  • 22
  • 38