Win32_NetworkProtocol

Win32 Network Protocol
root/cimv2dynamickey : Name

The Win32_NetworkProtocol WMI class represents a protocol and its network characteristics on a Win32 computer system.

On this page

Main example

List instances

# All instances of Win32_NetworkProtocol, with the main properties
Get-CimInstance -ClassName Win32_NetworkProtocol |
    Select-Object -Property Name, Description, Status, InstallDate

Examples

Filter with WQL

# WQL filter evaluated by the provider: only the instances where ConnectionlessService is TRUE
Get-CimInstance -ClassName Win32_NetworkProtocol -Filter 'ConnectionlessService = TRUE' |
    Select-Object -Property Name, Description, Status, InstallDate

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName Win32_NetworkProtocol |
        Select-Object -Property Name, Description, Status, InstallDate
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName Win32_NetworkProtocol
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

23 of 23 properties
NameTypeAccessDescription
Captionstringread

A short textual description of the object.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, Caption |
    Select-Object -Property Name, Caption
ConnectionlessServicebooleanread

Protocol supports connectionless service. A connectionless (datagram) service describes a communications protocol or transport in which data packets are routed independently of each other and may follow different routes and arrive in a different order from that in which they were sent. Conversely, a connection-oriented service provides a virtual circuit through which data packets are received in the same order they were transmitted. If the connection between computers fails, the application is notified.

Code
# Value of ConnectionlessService for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, ConnectionlessService |
    Select-Object -Property Name, ConnectionlessService
Descriptionstringread

A textual description of the object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, Description |
    Select-Object -Property Name, Description
GuaranteesDeliverybooleanread

Protocol supports delivery of data packets. If this flag is FALSE, it is uncertain that all of the data sent will reach the intended destination.

Code
# Value of GuaranteesDelivery for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, GuaranteesDelivery |
    Select-Object -Property Name, GuaranteesDelivery
GuaranteesSequencingbooleanread

Protocol ensures that data will arrive in the order in which it was sent. Be aware that this characteristic does not ensure delivery of the data, only its order.

Code
# Value of GuaranteesSequencing for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, GuaranteesSequencing |
    Select-Object -Property Name, GuaranteesSequencing
InstallDatedatetimeread

Indicates when the object was installed. Lack of a value does not indicate that the object is not installed.

Code
# Value of InstallDate for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, InstallDate |
    Select-Object -Property Name, InstallDate
MaximumAddressSizeuint32read

Maximum length of a socket address supported by the protocol. Socket addresses may be items such as a URL (www.microsoft.com) or an IP address (130.215.24.1).

Unit: characters

Code
# Value of MaximumAddressSize for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, MaximumAddressSize |
    Select-Object -Property Name, MaximumAddressSize
MaximumMessageSizeuint32read

Maximum message size supported by the protocol. This is the maximum size of a message that can be sent from or received by the host. For protocols that do not support message framing, the actual maximum size of a message that can be sent to a given address may be less than this value.

Unit: characters

Code
# Value of MaximumMessageSize for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, MaximumMessageSize |
    Select-Object -Property Name, MaximumMessageSize
MessageOrientedbooleanread

Protocol is message-oriented. A message-oriented protocol uses packets of data to transfer information. Conversely, stream-oriented protocols transfer data as a continuous stream of bytes.

Code
# Value of MessageOriented for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, MessageOriented |
    Select-Object -Property Name, MessageOriented
MinimumAddressSizeuint32read

Minimum length of a socket address supported by the protocol.

Unit: characters

Code
# Value of MinimumAddressSize for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, MinimumAddressSize |
    Select-Object -Property Name, MinimumAddressSize
Name keystringread

Name for the protocol.

Example: "TCP/IP"

Code
# Value of Name for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name |
    Select-Object -Property Name
PseudoStreamOrientedbooleanread

Protocol is a message-oriented protocol that can receive variable-length data packets or streamed data for all receive operations. This optional ability is useful when an application does not want the protocol to frame messages, and requires stream-oriented characteristics. If TRUE, the protocol is pseudo stream-oriented.

Code
# Value of PseudoStreamOriented for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, PseudoStreamOriented |
    Select-Object -Property Name, PseudoStreamOriented
Statusstringread

String that indicates the current status of the object. Operational and non-operational status can be defined. Operational status can include "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an element is functioning properly, but is predicting a failure (for example, a SMART-enabled hard disk drive).

Non-operational status can include "Error", "Starting", "Stopping", and "Service". "Service" can apply during disk mirror-resilvering, reloading a user permissions list, or other administrative work. Not all such work is online, but the managed element is neither "OK" nor in one of the other states.

Values include the following:

Values (12)
ValueLabelDescription
OKOK
ErrorError
DegradedDegraded
UnknownUnknown
Pred FailPred Fail
StartingStarting
StoppingStopping
ServiceService
StressedStressed
NonRecoverNonRecover
No ContactNo Contact
Lost CommLost Comm
Code
# Value of Status for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, Status |
    Select-Object -Property Name, Status
SupportsBroadcastingbooleanread

Protocol supports a mechanism for broadcasting messages across the network.

Code
# Value of SupportsBroadcasting for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsBroadcasting |
    Select-Object -Property Name, SupportsBroadcasting
SupportsConnectDatabooleanread

Protocol allows data to be connected across the network.

Code
# Value of SupportsConnectData for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsConnectData |
    Select-Object -Property Name, SupportsConnectData
SupportsDisconnectDatabooleanread

Protocol allows data to be disconnected across the network.

Code
# Value of SupportsDisconnectData for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsDisconnectData |
    Select-Object -Property Name, SupportsDisconnectData
SupportsEncryptionbooleanread

Protocol supports data encryption.

Code
# Value of SupportsEncryption for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsEncryption |
    Select-Object -Property Name, SupportsEncryption
SupportsExpeditedDatabooleanread

Protocol supports expedited data (also known as urgent data) across the network. Expedited data can bypass flow control and receive priority over normal data packets.

Code
# Value of SupportsExpeditedData for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsExpeditedData |
    Select-Object -Property Name, SupportsExpeditedData
SupportsFragmentationbooleanread

Protocol supports transmitting the data in fragments. Physical network maximum transfer unit (MTU) is hidden from applications. Each media type has a maximum frame size that cannot be exceeded. The link layer discovers the MTU and reports it to the protocols used.

Code
# Value of SupportsFragmentation for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsFragmentation |
    Select-Object -Property Name, SupportsFragmentation
SupportsGracefulClosingbooleanread

Protocol supports two-phase close operations, also known as "graceful close operations". If not, the protocol supports only abortive close operations.

Code
# Value of SupportsGracefulClosing for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsGracefulClosing |
    Select-Object -Property Name, SupportsGracefulClosing
SupportsGuaranteedBandwidthbooleanread

Protocol has a mechanism to establish and maintain a bandwidth.

Code
# Value of SupportsGuaranteedBandwidth for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsGuaranteedBandwidth |
    Select-Object -Property Name, SupportsGuaranteedBandwidth
SupportsMulticastingbooleanread

Protocol supports multicasting.

Code
# Value of SupportsMulticasting for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsMulticasting |
    Select-Object -Property Name, SupportsMulticasting
SupportsQualityofServicebooleanread

Protocol is capable of Quality of Service (QoS) support by the underlying layered service provider or transport carrier. QoS is a collection of components that enable differentiation and preferential treatment for subsets of data transmitted over the network. QoS means subsets of data get higher priority or guaranteed service when traversing a network.

Code
# Value of SupportsQualityofService for each instance
Get-CimInstance -ClassName Win32_NetworkProtocol -Property Name, SupportsQualityofService |
    Select-Object -Property Name, SupportsQualityofService

Remarks

The Win32_NetworkProtocol class is derived from CIM_LogicalElement.

Inheritance

Superclass chain

  1. CIM_ManagedSystemElement
  2. CIM_LogicalElement
  3. Win32_NetworkProtocol

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
Provider
CIMWin32
MOF file
CIMWin32.mof
DLL
CIMWin32.dll
Class qualifiers

Dynamic Provider("CIMWin32") UUID("{8502C4D8-5FBB-11D2-AAC1-006008C78BC7}") AMENDMENT

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.