Question win32_portconnector is used for ?

Status
Not open for further replies.

miyagi

New member
Joined
Nov 18, 2020
Messages
2
Programming Experience
5-10
what win32_portconnector is used for ? This question have 3 parts.
  1. What is the use case of win32_portconnector ?
  2. Can I get state of ports using it like Mouse cable, charger, HDMI cables etc ?
  3. Why VM have null results on this query :Get-WmiObject Win32_PortConnector ?
On VM:
PS C:\Users\Administrator> Get-WmiObject Win32_PortConnector

On Real environment:
PS C:\Users\Administrator> Get-WmiObject Win32_PortConnector


Tag : Port Connector 0
ConnectorType : {23, 3}
SerialNumber :
ExternalReferenceDesignator :
PortType : 2

Tag : Port Connector 1
ConnectorType : {21, 2}
SerialNumber :
ExternalReferenceDesignator :
PortType : 9

Tag : Port Connector 2
ConnectorType : {64}
SerialNumber :
ExternalReferenceDesignator :
PortType : 16

Tag : Port Connector 3
ConnectorType : {22, 3}
SerialNumber :
ExternalReferenceDesignator :
PortType : 28

Tag : Port Connector 4
ConnectorType : {54}
SerialNumber :
ExternalReferenceDesignator :
PortType : 17

Tag : Port Connector 5
ConnectorType : {38}
SerialNumber :
ExternalReferenceDesignator :
PortType : 30

Tag : Port Connector 6
ConnectorType : {39}
SerialNumber :
ExternalReferenceDesignator :
PortType : 31
 
With regards to the third question:
Why VM have null results on this query :Get-WmiObject Win32_PortConnector ?
I would assume that it is because that class is, according to the documentation, specifically for PHYSICAL connection ports. A VM has no physical ports because it's not a physical machine.
 
Does this question actually have anything to do with VB.NET ?
This is windows api and can be used by any windows language.

A VM has no physical ports because it's not a physical machine.
Yes I wanted to confirm whether this api is perfectly made for checking ports ?
Does mouse, charger, keyboard ports and data cable comes in this category ?
They given these examples DB-25 pin male, Centronics, or PS/2.
 
Status
Not open for further replies.

Latest posts

Back
Top