Getting USB port name and details

Question:

How can I get all USB ports and related details like port name, using Power Shell Script?

I tried Win32_USBControllerDevice class. But did not get a port name.

Answer:

Some explanation

The WMI class WIN32_USBControllerDevice describes the connection between USB controllers (The Antecedent) and their logical devices [CIM_LOGICALDEVICE] (the Dependent)


now you can check win32_PnPEntity to get more info about the device ex:

Source:

Getting USB port name and details by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply