title: Get a partition name with PowerShell
body: <p>I have a flash drive which I formatted so that the volume label on the drive is "PHILIP".</p>
  
  <p><img src="https://i.stack.imgur.com/sDjg4.png" alt="enter image description here"></p>
  
  <p>I am using <code>Get-PSDrive H -PSProvider FileSystem</code> to determine if the drive is plugged in, however I would really like to determine if the drive is plugged in by the volume label, i.e. <code>Get-PSDrive -VolumeLabel PHILIP -PSProvider FileSystem</code>. Of course the <code>VolumeLabel</code> parameter does not exist so this doesn't work.</p>
  
  <p>Is there a way to list the drives in a computer by volume name?</p>