title: Getting a USB Device Instance Path in Powershell
body: <p>I have a USB device with VID=XXXX and PID=YYYY attached. I'd like to get the end of the Device Instance Path using powershell. For example, if the actual path is <code>USB\VID_XXXX&amp;PID_YYYY\001122334455</code> then I want <code>001122334455</code>.</p>
  
  <p>I was trying something like this just to get the device properties, but I'm not getting anywhere:</p>
  
  <pre><code>Get-WmiObject -Class Win32_PnPEntity -Namespace "root\CIMV2" -Filter "PNPDeviceID='USB\\VID_XXXX&amp;PID_YYYY'" |Format-List *
  </code></pre>
  
  <p>Can anybody suggest the correct way to get the value I'm looking for through Powershell?</p>