title: How to Get-WMIObject Win32_PnPEntity | where {$_.Name -like "USB Serial Port*"} by Model (label) of Unspecified Device
body: <p>With PowerShell I ask the following:</p>
  
  <pre><code>Get-WMIObject Win32_PnPEntity | where {$_.Name -like "USB Serial Port*"} |
      Format-Table Name, Description, Manufacturer
  </code></pre>
  
  <p>The output brings me:</p>
  
  <pre>Name         : USB Serial Port (COM15)
  Description  : USB Serial Port
  Manufacturer : FTDI
  
  Name         : USB Serial Port (COM10)
  Description  : USB Serial Port
  Manufacturer : FTDI</pre>
  
  <p>So I get two results with the difference in brackets. What I am looking for is to get COMxx but by the Model(label) displayed in (Control Panel - Devices and Printers - Unspecified - an item Properties) to get exactly what I need, means COM number of the device. Please see the ScreeShot for example. Note that the label is hidden for security reason.</p>
  
  <p><a href="https://i.stack.imgur.com/BJJfp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BJJfp.png" alt="device info as shown in control panel"></a></p>
  
  <p>Is anyone of you who knows a way to solution? I will be appreciated for your help.</p>