| Availability# | uint16 | read | Availability and status of the device. Values (21)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Running/Full Power | Running or Full Power | | 4 | Warning | | | 5 | In Test | | | 6 | Not Applicable | | | 7 | Power Off | | | 8 | Off Line | | | 9 | Off Duty | | | 10 | Degraded | | | 11 | Not Installed | | | 12 | Install Error | | | 13 | Power Save - Unknown | The device is known to be in a power save mode, but its exact status is unknown. | | 14 | Power Save - Low Power Mode | The device is in a power save state but still functioning, and may exhibit degraded performance. | | 15 | Power Save - Standby | The device is not functioning, but could be brought to full power quickly. | | 16 | Power Cycle | | | 17 | Power Save - Warning | The device is in a warning state, though also in a power save mode. | | 18 | Paused | The device is paused. | | 19 | Not Ready | The device is not ready. | | 20 | Not Configured | The device is not configured. | | 21 | Quiesced | The device is quiet. |
Code# Value of Availability for each instance
# Lookup table for Availability (values documented by Microsoft)
$availabilityName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Running/Full Power'
4 = 'Warning'
5 = 'In Test'
6 = 'Not Applicable'
7 = 'Power Off'
8 = 'Off Line'
9 = 'Off Duty'
10 = 'Degraded'
11 = 'Not Installed'
12 = 'Install Error'
13 = 'Power Save - Unknown'
14 = 'Power Save - Low Power Mode'
15 = 'Power Save - Standby'
16 = 'Power Cycle'
17 = 'Power Save - Warning'
18 = 'Paused'
19 = 'Not Ready'
20 = 'Not Configured'
21 = 'Quiesced'
}
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Availability |
Select-Object -Property @(
'DeviceID'
@{ Name = 'Availability'; Expression = { $availabilityName[[int]$_.Availability] } }
)
|
| Binary# | boolean | read | If TRUE, the serial port is configured for binary data transfer. Because the Windows API does not support nonbinary mode transfers, this property must be TRUE. Code# Value of Binary for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Binary |
Select-Object -Property DeviceID, Binary
|
| Capabilities# | uint16[] | read | Array of chip-level compatibility for the serial controller. This property describes the buffering and other capabilities of the serial controller that may be inherent in the chip hardware. The property is an enumerated integer. Values (8)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | XT/AT Compatible | | | 4 | 16450 Compatible | | | 5 | 16550 Compatible | | | 6 | 16550A Compatible | | | 160 | 8251 Compatible | | | 161 | 8251FIFO Compatible | |
Code# Value of Capabilities for each instance
# Lookup table for Capabilities (values documented by Microsoft)
$capabilitiesName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'XT/AT Compatible'
4 = '16450 Compatible'
5 = '16550 Compatible'
6 = '16550A Compatible'
160 = '8251 Compatible'
161 = '8251FIFO Compatible'
}
# Capabilities is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SerialPort -Property Capabilities |
Select-Object -ExpandProperty Capabilities |
ForEach-Object -Process { $capabilitiesName[[int]$_] }
|
| CapabilityDescriptions# | string[] | read | Array of free-form strings providing more detailed explanations for any of the serial controller features indicated in the Capabilities array. Note, each entry of this array is related to the entry in the Capabilities array that is located at the same index. Code# Value of CapabilityDescriptions for each instance
# CapabilityDescriptions is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SerialPort -Property CapabilityDescriptions |
Select-Object -ExpandProperty CapabilityDescriptions
|
| Caption# | string | read | Short description of the object. Code# Value of Caption for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Caption |
Select-Object -Property DeviceID, Caption
|
| ConfigManagerErrorCode# | uint32 | read | Win32 Configuration Manager error code. Values (32)| Value | Label | Description |
|---|
| 0 | This device is working properly. | Device is working properly. | | 1 | This device is not configured correctly. | Device is not configured correctly. | | 2 | Windows cannot load the driver for this device. | | | 3 | The driver for this device might be corrupted, or your system may be running low on memory or other resources. | Driver for this device might be corrupted, or the system may be low on memory or other resources. | | 4 | This device is not working properly. One of its drivers or your registry might be corrupted. | Device is not working properly. One of its drivers or the registry might be corrupted. | | 5 | The driver for this device needs a resource that Windows cannot manage. | Driver for the device requires a resource that Windows cannot manage. | | 6 | The boot configuration for this device conflicts with other devices. | Boot configuration for the device conflicts with other devices. | | 7 | Cannot filter. | | | 8 | The driver loader for the device is missing. | Driver loader for the device is missing. | | 9 | This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. | Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device. | | 10 | This device cannot start. | Device cannot start. | | 11 | This device failed. | Device failed. | | 12 | This device cannot find enough free resources that it can use. | Device cannot find enough free resources to use. | | 13 | Windows cannot verify this device's resources. | Windows cannot verify the device's resources. | | 14 | This device cannot work properly until you restart your computer. | Device cannot work properly until the computer is restarted. | | 15 | This device is not working properly because there is probably a re-enumeration problem. | Device is not working properly due to a possible re-enumeration problem. | | 16 | Windows cannot identify all the resources this device uses. | Windows cannot identify all of the resources that the device uses. | | 17 | This device is asking for an unknown resource type. | Device is requesting an unknown resource type. | | 18 | Reinstall the drivers for this device. | Device drivers must be reinstalled. | | 19 | Failure using the VxD loader. | | | 20 | Your registry might be corrupted. | Registry might be corrupted. | | 21 | System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. | System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device. | | 22 | This device is disabled. | Device is disabled. | | 23 | System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation. | System failure. If changing the device driver is ineffective, see the hardware documentation. | | 24 | This device is not present, is not working properly, or does not have all its drivers installed. | Device is not present, not working properly, or does not have all of its drivers installed. | | 25 | Windows is still setting up this device. | Windows is still setting up the device. | | 26 | Windows is still setting up this device. | Windows is still setting up the device. | | 27 | This device does not have valid log configuration. | Device does not have valid log configuration. | | 28 | The drivers for this device are not installed. | Device drivers are not installed. | | 29 | This device is disabled because the firmware of the device did not give it the required resources. | Device is disabled. The device firmware did not provide the required resources. | | 30 | This device is using an Interrupt Request (IRQ) resource that another device is using. | Device is using an IRQ resource that another device is using. | | 31 | This device is not working properly because Windows cannot load the drivers required for this device. | Device is not working properly. Windows cannot load the required device drivers. |
Code# Value of ConfigManagerErrorCode for each instance
# Lookup table for ConfigManagerErrorCode (values documented by Microsoft)
$configManagerErrorCodeName = @{
0 = 'This device is working properly'
1 = 'This device is not configured correctly'
2 = 'Windows cannot load the driver for this device'
3 = 'The driver for this device might be corrupted, or your…'
4 = 'This device is not working properly'
5 = 'The driver for this device needs a resource that Windows…'
6 = 'The boot configuration for this device conflicts with other…'
7 = 'Cannot filter'
8 = 'The driver loader for the device is missing'
9 = 'This device is not working properly because the controlling…'
10 = 'This device cannot start'
11 = 'This device failed'
12 = 'This device cannot find enough free resources that it can use'
13 = 'Windows cannot verify this device''s resources'
14 = 'This device cannot work properly until you restart your…'
15 = 'This device is not working properly because there is…'
16 = 'Windows cannot identify all the resources this device uses'
17 = 'This device is asking for an unknown resource type'
18 = 'Reinstall the drivers for this device'
19 = 'Failure using the VxD loader'
20 = 'Your registry might be corrupted'
21 = 'System failure: Try changing the driver for this device'
22 = 'This device is disabled'
23 = 'System failure: Try changing the driver for this device'
24 = 'This device is not present, is not working properly, or does…'
25 = 'Windows is still setting up this device'
26 = 'Windows is still setting up this device'
27 = 'This device does not have valid log configuration'
28 = 'The drivers for this device are not installed'
29 = 'This device is disabled because the firmware of the device…'
30 = 'This device is using an Interrupt Request (IRQ) resource…'
31 = 'This device is not working properly because Windows cannot…'
}
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ConfigManagerErrorCode |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ConfigManagerErrorCode'; Expression = { $configManagerErrorCodeName[[int]$_.ConfigManagerErrorCode] } }
)
|
| ConfigManagerUserConfig# | boolean | read | If TRUE, the device is using a user-defined configuration. Code# Value of ConfigManagerUserConfig for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ConfigManagerUserConfig |
Select-Object -Property DeviceID, ConfigManagerUserConfig
|
| CreationClassName# key | string | read | Name of the first concrete class to appear in the inheritance chain used in the creation of an instance. When used with the other key properties of the class, the property allows all instances of this class and its subclasses to be uniquely identified. Code# Value of CreationClassName for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, CreationClassName |
Select-Object -Property DeviceID, CreationClassName
|
| Description# | string | read | Description of the object. Code# Value of Description for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Description |
Select-Object -Property DeviceID, Description
|
| DeviceID# key | string | read | Unique identifier of the serial port with other devices on the system. Code# Value of DeviceID for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID |
Select-Object -Property DeviceID
|
| ErrorCleared# | boolean | read | If TRUE, the error reported in LastErrorCode is now cleared. Code# Value of ErrorCleared for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ErrorCleared |
Select-Object -Property DeviceID, ErrorCleared
|
| ErrorDescription# | string | read | Free-form string supplying more information about the error recorded in LastErrorCode, and information about any corrective actions that may be taken. Code# Value of ErrorDescription for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ErrorDescription |
Select-Object -Property DeviceID, ErrorDescription
|
| InstallDate# | datetime | read | Date and time the object was installed. This property does not need a value to indicate that the object is installed. Code# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, InstallDate |
Select-Object -Property DeviceID, InstallDate
|
| LastErrorCode# | uint32 | read | Last error code reported by the logical device. Code# Value of LastErrorCode for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, LastErrorCode |
Select-Object -Property DeviceID, LastErrorCode
|
| MaxBaudRate# | uint32 | read | Maximum baud rate (in bits per second) supported by the serial controller. Unit: bits per second Code# Value of MaxBaudRate for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, MaxBaudRate |
Select-Object -Property DeviceID, MaxBaudRate
|
| MaximumInputBufferSize# | uint32 | read | Maximum size of the serial port driver's internal input buffer. A value of 0 (zero) indicates that no maximum value is imposed by the serial provider. Unit: bytes Code# Value of MaximumInputBufferSize for each instance
# MaximumInputBufferSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, MaximumInputBufferSize |
Select-Object -Property @(
'DeviceID'
@{ Name = 'MaximumInputBufferSizeGB'; Expression = { [math]::Round($_.MaximumInputBufferSize / 1GB, 2) } }
)
|
| MaximumOutputBufferSize# | uint32 | read | Maximum size of the serial port driver's internal output buffer. A value of 0 (zero) indicates that no maximum value is imposed by the serial provider. Unit: bytes Code# Value of MaximumOutputBufferSize for each instance
# MaximumOutputBufferSize is expressed in bytes: converted to GB
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, MaximumOutputBufferSize |
Select-Object -Property @(
'DeviceID'
@{ Name = 'MaximumOutputBufferSizeGB'; Expression = { [math]::Round($_.MaximumOutputBufferSize / 1GB, 2) } }
)
|
| MaxNumberControlled# | uint32 | read | Maximum number of directly addressable entities supportable by this controller. A value of 0 (zero) should be used if the number is unknown. Code# Value of MaxNumberControlled for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, MaxNumberControlled |
Select-Object -Property DeviceID, MaxNumberControlled
|
| Name# | string | read | Label by which the object is known. When subclassed, the property can be overridden to be a key property. Code# Value of Name for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Name |
Select-Object -Property DeviceID, Name
|
| OSAutoDiscovered# | boolean | read | If TRUE, the instances of this class were automatically discovered by the operating system. If, for example, hardware was added through Control Panel, the operating system finds instances of this class by querying hardware from the instances of this class. Code# Value of OSAutoDiscovered for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, OSAutoDiscovered |
Select-Object -Property DeviceID, OSAutoDiscovered
|
| PNPDeviceID# | string | read | Windows Plug and Play device identifier of the logical device. Example: "*PNP030b" Code# Value of PNPDeviceID for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, PNPDeviceID |
Select-Object -Property DeviceID, PNPDeviceID
|
| PowerManagementCapabilities# | uint16[] | read | Array of the specific power-related capabilities of a logical device. Values (8)| Value | Label | Description |
|---|
| 0 | Unknown | | | 1 | Not Supported | | | 2 | Disabled | | | 3 | Enabled | The power management features are currently enabled but the exact feature set is unknown or the information is unavailable. | | 4 | Power Saving Modes Entered Automatically | The device can change its power state based on usage or other criteria. | | 5 | Power State Settable | The SetPowerState method is supported. This method is found on the parent **CIM_LogicalDevice** class and can be implemented. For more information, see Designing Managed Object Format (MOF) Classes. | | 6 | Power Cycling Supported | The SetPowerState method can be invoked with the *PowerState* parameter set to 5 (Power Cycle). | | 7 | Timed Power On Supported | Timed Power-On Supported
The SetPowerState method can be invoked with the *PowerState* parameter set to 5 (Power Cycle) and *Time* set to a specific date and time, or interval, for power-on. |
Code# Value of PowerManagementCapabilities for each instance
# Lookup table for PowerManagementCapabilities (values documented by Microsoft)
$powerManagementCapabilitiesName = @{
0 = 'Unknown'
1 = 'Not Supported'
2 = 'Disabled'
3 = 'Enabled'
4 = 'Power Saving Modes Entered Automatically'
5 = 'Power State Settable'
6 = 'Power Cycling Supported'
7 = 'Timed Power On Supported'
}
# PowerManagementCapabilities is an array: -ExpandProperty returns its items one by one
Get-CimInstance -ClassName Win32_SerialPort -Property PowerManagementCapabilities |
Select-Object -ExpandProperty PowerManagementCapabilities |
ForEach-Object -Process { $powerManagementCapabilitiesName[[int]$_] }
|
| PowerManagementSupported# | boolean | read | If TRUE, the device can be power-managed (can be put into suspend mode, and so on). The property does not indicate that power management features are currently enabled, only that the logical device is capable of power management. Code# Value of PowerManagementSupported for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, PowerManagementSupported |
Select-Object -Property DeviceID, PowerManagementSupported
|
| ProtocolSupported# | uint16 | read | Protocol used by the controller to access "controlled" devices. Values (47)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | EISA | | | 4 | ISA | | | 5 | PCI | | | 6 | ATA/ATAPI | ATA or ATAPI | | 7 | Flexible Diskette | | | 8 | 1496 | | | 9 | SCSI Parallel Interface | | | 10 | SCSI Fibre Channel Protocol | | | 11 | SCSI Serial Bus Protocol | | | 12 | SCSI Serial Bus Protocol-2 (1394) | | | 13 | SCSI Serial Storage Architecture | | | 14 | VESA | | | 15 | PCMCIA | | | 16 | Universal Serial Bus | | | 17 | Parallel Protocol | | | 18 | ESCON | | | 19 | Diagnostic | | | 20 | I2C | | | 21 | Power | | | 22 | HIPPI | | | 23 | MultiBus | | | 24 | VME | | | 25 | IPI | | | 26 | IEEE-488 | | | 27 | RS232 | | | 28 | IEEE 802.3 10BASE5 | | | 29 | IEEE 802.3 10BASE2 | | | 30 | IEEE 802.3 1BASE5 | | | 31 | IEEE 802.3 10BROAD36 | | | 32 | IEEE 802.3 100BASEVG | | | 33 | IEEE 802.5 Token-Ring | | | 34 | ANSI X3T9.5 FDDI | | | 35 | MCA | | | 36 | ESDI | | | 37 | IDE | | | 38 | CMD | | | 39 | ST506 | | | 40 | DSSI | | | 41 | QIC2 | | | 42 | Enhanced ATA/IDE | | | 43 | AGP | | | 44 | TWIRP (two-way infrared) | | | 45 | FIR (fast infrared) | | | 46 | SIR (serial infrared) | | | 47 | IrBus | |
Code# Value of ProtocolSupported for each instance
# Lookup table for ProtocolSupported (values documented by Microsoft)
$protocolSupportedName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'EISA'
4 = 'ISA'
5 = 'PCI'
6 = 'ATA/ATAPI'
7 = 'Flexible Diskette'
8 = '1496'
9 = 'SCSI Parallel Interface'
10 = 'SCSI Fibre Channel Protocol'
11 = 'SCSI Serial Bus Protocol'
12 = 'SCSI Serial Bus Protocol-2 (1394)'
13 = 'SCSI Serial Storage Architecture'
14 = 'VESA'
15 = 'PCMCIA'
16 = 'Universal Serial Bus'
17 = 'Parallel Protocol'
18 = 'ESCON'
19 = 'Diagnostic'
20 = 'I2C'
21 = 'Power'
22 = 'HIPPI'
23 = 'MultiBus'
24 = 'VME'
25 = 'IPI'
26 = 'IEEE-488'
27 = 'RS232'
28 = 'IEEE 802.3 10BASE5'
29 = 'IEEE 802.3 10BASE2'
30 = 'IEEE 802.3 1BASE5'
31 = 'IEEE 802.3 10BROAD36'
32 = 'IEEE 802.3 100BASEVG'
33 = 'IEEE 802.5 Token-Ring'
34 = 'ANSI X3T9.5 FDDI'
35 = 'MCA'
36 = 'ESDI'
37 = 'IDE'
38 = 'CMD'
39 = 'ST506'
40 = 'DSSI'
41 = 'QIC2'
42 = 'Enhanced ATA/IDE'
43 = 'AGP'
44 = 'TWIRP (two-way infrared)'
45 = 'FIR (fast infrared)'
46 = 'SIR (serial infrared)'
47 = 'IrBus'
}
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ProtocolSupported |
Select-Object -Property @(
'DeviceID'
@{ Name = 'ProtocolSupported'; Expression = { $protocolSupportedName[[int]$_.ProtocolSupported] } }
)
|
| ProviderType# | string | read | Communications provider type. The values are: "FAX Device" "LAT Protocol" "Modem Device" "Network Bridge" "Parallel Port" "RS232 Serial Port" "RS422 Port" "RS423 Port" "RS449 Port" "Scanner Device" "TCP/IP TelNet" "X.25" "Unspecified" Values (13)| Value | Label | Description |
|---|
| FAX Device | FAX Device | | | LAT Protocol | LAT Protocol | | | Modem Device | Modem Device | | | Network Bridge | Network Bridge | | | Parallel Port | Parallel Port | | | RS232 Serial Port | RS232 Serial Port | | | RS422 Port | RS422 Port | | | RS423 Port | RS423 Port | | | RS449 Port | RS449 Port | | | Scanner Device | Scanner Device | | | TCP/IP TelNet | TCP/IP TelNet | | | X.25 | X.25 | | | Unspecified | Unspecified | |
Code# Value of ProviderType for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, ProviderType |
Select-Object -Property DeviceID, ProviderType
|
| SettableBaudRate# | boolean | read | If TRUE, the baud rate can be changed for this serial port. Code# Value of SettableBaudRate for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableBaudRate |
Select-Object -Property DeviceID, SettableBaudRate
|
| SettableDataBits# | boolean | read | If TRUE, data bits can be set for this serial port. Code# Value of SettableDataBits for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableDataBits |
Select-Object -Property DeviceID, SettableDataBits
|
| SettableFlowControl# | boolean | read | If TRUE, flow control can be set for this serial port. Code# Value of SettableFlowControl for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableFlowControl |
Select-Object -Property DeviceID, SettableFlowControl
|
| SettableParity# | boolean | read | If TRUE, parity can be set for this serial port. Code# Value of SettableParity for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableParity |
Select-Object -Property DeviceID, SettableParity
|
| SettableParityCheck# | boolean | read | If TRUE, parity checking can be set for this serial port (if parity checking is supported). Code# Value of SettableParityCheck for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableParityCheck |
Select-Object -Property DeviceID, SettableParityCheck
|
| SettableRLSD# | boolean | read | If TRUE, Received Line Signal Detect (RLSD) can be set for this serial port (if RLSD is supported). Code# Value of SettableRLSD for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableRLSD |
Select-Object -Property DeviceID, SettableRLSD
|
| SettableStopBits# | boolean | read | If TRUE, stop bits can be set for this serial port. Code# Value of SettableStopBits for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SettableStopBits |
Select-Object -Property DeviceID, SettableStopBits
|
| Status# | string | read | Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states. Values include the following: Values (12)| Value | Label | Description |
|---|
| OK | OK | | | Error | Error | | | Degraded | Degraded | | | Unknown | Unknown | | | Pred Fail | Pred Fail | | | Starting | Starting | | | Stopping | Stopping | | | Service | Service | | | Stressed | Stressed | | | NonRecover | NonRecover | | | No Contact | No Contact | | | Lost Comm | Lost Comm | |
Code# Value of Status for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Status |
Select-Object -Property DeviceID, Status
|
| StatusInfo# | uint16 | read | State of the logical device. If this property does not apply to the logical device, the value 5 (Not Applicable) should be used. Values (5)| Value | Label | Description |
|---|
| 1 | Other | | | 2 | Unknown | | | 3 | Enabled | | | 4 | Disabled | | | 5 | Not Applicable | |
Code# Value of StatusInfo for each instance
# Lookup table for StatusInfo (values documented by Microsoft)
$statusInfoName = @{
1 = 'Other'
2 = 'Unknown'
3 = 'Enabled'
4 = 'Disabled'
5 = 'Not Applicable'
}
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, StatusInfo |
Select-Object -Property @(
'DeviceID'
@{ Name = 'StatusInfo'; Expression = { $statusInfoName[[int]$_.StatusInfo] } }
)
|
| Supports16BitMode# | boolean | read | If TRUE, 16-bit mode is supported on this serial port. Code# Value of Supports16BitMode for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, Supports16BitMode |
Select-Object -Property DeviceID, Supports16BitMode
|
| SupportsDTRDSR# | boolean | read | If TRUE, data terminal ready (DTR) and data set ready (DSR) signals are supported on this serial port. Code# Value of SupportsDTRDSR for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsDTRDSR |
Select-Object -Property DeviceID, SupportsDTRDSR
|
| SupportsElapsedTimeouts# | boolean | read | If TRUE, elapsed time-outs are supported on this serial port. Elapsed timeouts track the total amount of time between data transmissions. Code# Value of SupportsElapsedTimeouts for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsElapsedTimeouts |
Select-Object -Property DeviceID, SupportsElapsedTimeouts
|
| SupportsIntTimeouts# | boolean | read | If TRUE, interval time-outs are supported. An interval timeout is the amount of time allowed to elapse between the arrival of each piece of data. Code# Value of SupportsIntTimeouts for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsIntTimeouts |
Select-Object -Property DeviceID, SupportsIntTimeouts
|
| SupportsParityCheck# | boolean | read | If TRUE, parity checking is supported on this serial port. Code# Value of SupportsParityCheck for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsParityCheck |
Select-Object -Property DeviceID, SupportsParityCheck
|
| SupportsRLSD# | boolean | read | If TRUE, Received Line Signal Detect (RLSD) is supported on this serial port. Code# Value of SupportsRLSD for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsRLSD |
Select-Object -Property DeviceID, SupportsRLSD
|
| SupportsRTSCTS# | boolean | read | If TRUE, ready to send (RTS) and clear to send (CTS) signals are supported on this serial port. Code# Value of SupportsRTSCTS for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsRTSCTS |
Select-Object -Property DeviceID, SupportsRTSCTS
|
| SupportsSpecialCharacters# | boolean | read | If TRUE, serial port control characters are supported. These characters signal events rather than data. These characters are not displayable and are set by the driver. They include EofChar, ErrorChar, BreakChar, EventChar, XonChar, and XoffChar. Code# Value of SupportsSpecialCharacters for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsSpecialCharacters |
Select-Object -Property DeviceID, SupportsSpecialCharacters
|
| SupportsXOnXOff# | boolean | read | If TRUE, XON or XOFF flow-control is supported on this serial port. Code# Value of SupportsXOnXOff for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsXOnXOff |
Select-Object -Property DeviceID, SupportsXOnXOff
|
| SupportsXOnXOffSet# | boolean | read | If TRUE, the communications provider supports configuration of the XONor XOFF flow-control setting. Code# Value of SupportsXOnXOffSet for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SupportsXOnXOffSet |
Select-Object -Property DeviceID, SupportsXOnXOffSet
|
| SystemCreationClassName# key | string | read | Value of the scoping computer's CreationClassName property. Code# Value of SystemCreationClassName for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SystemCreationClassName |
Select-Object -Property DeviceID, SystemCreationClassName
|
| SystemName# key | string | read | Name of the scoping system. Code# Value of SystemName for each instance
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, SystemName |
Select-Object -Property DeviceID, SystemName
|
| TimeOfLastReset# | datetime | read | Date and time this controller was last reset. This could mean the controller was powered down, or reinitialized. Code# Value of TimeOfLastReset for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_SerialPort -Property DeviceID, TimeOfLastReset |
Select-Object -Property DeviceID, TimeOfLastReset
|