FILE: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\NetTCPIP\Tcpip.Format.ps1xml
--
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetRoute
7
46
40
11
8
11
InterfaceIndex
DestinationPrefix
NextHop
RouteMetric
Right
InterfaceMetric
Store
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetRoute
DestinationPrefix
InterfaceIndex
InterfaceAlias
CompartmentId
AddressFamily
NextHop
Publish
State
RouteMetric
InterfaceMetric
Protocol
if ($_.ValidLifetime.Days -eq 10675199 -and
$_.ValidLifetime.Hours -eq 2 -and
$_.ValidLifetime.Minutes -eq 48 -and
$_.ValidLifetime.Seconds -eq 5 -and
$_.ValidLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.ValidLifetime.ToString()
}
if ($_.PreferredLifetime.Days -eq 10675199 -and
$_.PreferredLifetime.Hours -eq 2 -and
$_.PreferredLifetime.Minutes -eq 48 -and
$_.PreferredLifetime.Seconds -eq 5 -and
$_.PreferredLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.PreferredLifetime.ToString()
}
Store
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPAddress
IPAddress
InterfaceIndex
InterfaceAlias
AddressFamily
Type
PrefixLength
PrefixOrigin
SuffixOrigin
AddressState
if ($_.ValidLifetime.Days -eq 10675199 -and
$_.ValidLifetime.Hours -eq 2 -and
$_.ValidLifetime.Minutes -eq 48 -and
$_.ValidLifetime.Seconds -eq 5 -and
$_.ValidLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.ValidLifetime.ToString()
}
if ($_.PreferredLifetime.Days -eq 10675199 -and
$_.PreferredLifetime.Hours -eq 2 -and
$_.PreferredLifetime.Minutes -eq 48 -and
$_.PreferredLifetime.Seconds -eq 5 -and
$_.PreferredLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.PreferredLifetime.ToString()
}
SkipAsSource
Store
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPAddress
7
47
12
12
12
12
11
InterfaceIndex
IPAddress
PrefixLength
Right
PrefixOrigin
SuffixOrigin
AddressState
Store
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetNeighbor
7
50
21
11
15
InterfaceIndex
IPAddress
LinkLayerAddress
State
Store
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetNeighbor
IPAddress
InterfaceIndex
InterfaceAlias
AddressFamily
LinkLayerAddress
State
Store
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPInterface
7
31
13
12
15
8
15
11
InterfaceIndex
InterfaceAlias
AddressFamily
NlMtu
Right
InterfaceMetric
Right
Dhcp
ConnectionState
Store
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPInterface
InterfaceIndex
InterfaceAlias
CompartmentId
AddressFamily
Forwarding
ClampMss
Advertising
NlMtu
AutomaticMetric
InterfaceMetric
NeighborDiscoverySupported
NeighborUnreachabilityDetection
BaseReachableTime
ReachableTime
RetransmitTime
DadTransmits
DadRetransmitTime
RouterDiscovery
ManagedAddressConfiguration
OtherStatefulConfiguration
WeakHostSend
WeakHostReceive
IgnoreDefaultRoutes
if ($_.AdvertisedRouterLifetime.Days -eq 10675199 -and
$_.AdvertisedRouterLifetime.Hours -eq 2 -and
$_.AdvertisedRouterLifetime.Minutes -eq 48 -and
$_.AdvertisedRouterLifetime.Seconds -eq 5 -and
$_.AdvertisedRouterLifetime.Milliseconds -eq 477) {
"Infinite ([TimeSpan]::MaxValue)"
} else {
$_.AdvertisedRouterLifetime.ToString()
}
AdvertiseDefaultRoute
CurrentHopLimit
ForceArpNdWolPattern
DirectedMacWolPattern
EcnMarking
Dhcp
ConnectionState
Store
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetPrefixPolicy
60
10
10
Prefix
Precedence
Right
Label
Right
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetPrefixPolicy
Prefix
Precedence
Label
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPv6Protocol
DefaultHopLimit
NeighborCacheLimit
RouteCacheLimit
ReassemblyLimit
IcmpRedirects
SourceRoutingBehavior
DhcpMediaSense
MediaSenseEventLog
MldLevel
MldVersion
MulticastForwarding
GroupForwardedFragments
RandomizeIdentifiers
AddressMaskReply
UseTemporaryAddresses
MaxDadAttempts
if ($_.MaxValidLifetime.Days -eq 10675199 -and
$_.MaxValidLifetime.Hours -eq 2 -and
$_.MaxValidLifetime.Minutes -eq 48 -and
$_.MaxValidLifetime.Seconds -eq 5 -and
$_.MaxValidLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.MaxValidLifetime.ToString()
}
if ($_.MaxPreferredLifetime.Days -eq 10675199 -and
$_.MaxPreferredLifetime.Hours -eq 2 -and
$_.MaxPreferredLifetime.Minutes -eq 48 -and
$_.MaxPreferredLifetime.Seconds -eq 5 -and
$_.MaxPreferredLifetime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.MaxPreferredLifetime.ToString()
}
if ($_.RegenerateTime.Days -eq 10675199 -and
$_.RegenerateTime.Hours -eq 2 -and
$_.RegenerateTime.Minutes -eq 48 -and
$_.RegenerateTime.Seconds -eq 5 -and
$_.RegenerateTime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.RegenerateTime.ToString()
}
if ($_.MaxRandomTime.Days -eq 10675199 -and
$_.MaxRandomTime.Hours -eq 2 -and
$_.MaxRandomTime.Minutes -eq 48 -and
$_.MaxRandomTime.Seconds -eq 5 -and
$_.MaxRandomTime.Milliseconds -eq 477) {
“Infinite ([TimeSpan]::MaxValue)”
} else {
$_.MaxRandomTime.ToString()
}
DeadGatewayDetection
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPv6Protocol
15
13
14
11
20
21
14
DefaultHopLimit
IcmpRedirects
DhcpMediaSense
MldVersion
RandomizeIdentifiers
UseTemporaryAddresses
MaxDadAttempts
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPv4Protocol
DefaultHopLimit
NeighborCacheLimit
RouteCacheLimit
ReassemblyLimit
IcmpRedirects
SourceRoutingBehavior
DhcpMediaSense
MediaSenseEventLog
IGMPLevel
IGMPVersion
MulticastForwarding
GroupForwardedFragments
RandomizeIdentifiers
AddressMaskReply
MinimumMtu
DeadGatewayDetection
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetIPv4Protocol
15
13
14
11
20
DefaultHopLimit
IcmpRedirects
DhcpMediaSense
IGMPVersion
RandomizeIdentifiers
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTCPSetting
SettingName
MinRto
InitialCongestionWindow
CongestionProvider
CwndRestart
DelayedAckTimeout
DelayedAckFrequency
MemoryPressureProtection
AutoTuningLevelLocal
AutoTuningLevelGroupPolicy
AutoTuningLevelEffective
EcnCapability
Timestamps
InitialRto
ScalingHeuristics
DynamicPortRangeStartPort
DynamicPortRangeNumberOfPorts
AutomaticUseCustom
NonSackRttResiliency
ForceWS
MaxSynRetransmissions
AutoReusePortRangeStartPort
AutoReusePortRangeNumberOfPorts
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTCPSetting
11
18
10
14
11
17
17
24
SettingName
CongestionProvider
MinRto
Right
InitialRto
Right
CwndRestart
DelayedAckTimeout
Right
DelayedAckFrequency
Right
AutoTuningLevelEffective
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetUDPSetting
DynamicPortRangeStartPort
DynamicPortRangeNumberOfPorts
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetUDPSetting
25
30
DynamicPortRangeStartPort
DynamicPortRangeNumberOfPorts
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTransportFilter
SettingName
Protocol
LocalPortStart
LocalPortEnd
RemotePortStart
RemotePortEnd
DestinationPrefix
TableView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTransportFilter
12
8
14
12
15
13
39
SettingName
Protocol
LocalPortStart
LocalPortEnd
RemotePortStart
RemotePortEnd
DestinationPrefix
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTCPConnection
35
9
35
10
11
14
14
LocalAddress
LocalPort
RemoteAddress
RemotePort
State
AppliedSetting
OwningProcess
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetTCPConnection
LocalAddress
LocalPort
RemoteAddress
RemotePort
State
AppliedSetting
OwningProcess
if ($_.CreationTime.Year -eq 1600) {
"N/A"
} else {
$_.CreationTime.ToString()
}
OffloadState
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetUDPEndpoint
40
15
LocalAddress
LocalPort
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetUDPEndpoint
LocalAddress
LocalPort
OwningProcess
if ($_.CreationTime.Year -eq 1600) {
"N/A"
} else {
$_.CreationTime.ToString()
}
ListView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetCompartment
CompartmentId
CompartmentDescription
CompartmentGuid
DefaultView
Microsoft.Management.Infrastructure.CimInstance#ROOT/StandardCimv2/MSFT_NetOffloadGlobalSetting
ReceiveSideScaling
ReceiveSegmentCoalescing
Chimney
TaskOffload
NetworkDirect
NetworkDirectAcrossIPSubnets
PacketCoalescingFilter
NetIPConfiguration
NetIPConfiguration
Detailed
ComputerName
InterfaceAlias
InterfaceIndex
InterfaceDescription
Detailed
$_.NetCompartment.CompartmentId
Detailed
$_.NetCompartment.CompartmentDescription
($_.NetAdapter -ne $null) -and ($_.Detailed)
$_.NetAdapter.LinkLayerAddress
($_.NetAdapter -ne $null) -and (($_.NetAdapter.Status -ne "Up") -or ($_.Detailed))
$_.NetAdapter.Status
$_.NetProfile
$_.NetProfile.Name
($_.NetProfile) -and ($_.Detailed)
$_.NetProfile.NetworkCategory
($_.NetProfile) -and ($_.Detailed)
$_.NetProfile.IPv6Connectivity
($_.NetProfile) -and ($_.Detailed)
$_.NetProfile.IPv4Connectivity
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and
($_.IPv6Address.Count -ne 0)
$output = "";
foreach($Address in $_.IPv6Address) {
$output += $Address.IPv6Address + "`n";
}
$output.Trim("`n");
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and
($_.IPv6TemporaryAddress.Count -ne 0) -and
($_.Detailed)
$output = "";
foreach($Address in $_.IPv6TemporaryAddress) {
$output += $Address.IPv6Address + "`n";
}
$output.Trim("`n");
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and
($_.IPv6LinkLocalAddress.Count -ne 0) -and
($_.Detailed)
$output = "";
foreach($Address in $_.IPv6LinkLocalAddress) {
$output += $Address.IPv6Address + "`n";
}
$output.Trim("`n");
($_.NetIPv4Interface.ConnectionState -eq "Connected") -and
($_.IPv4Address.Count -ne 0)
$output = "";
foreach($Address in $_.IPv4Address) {
$output += $Address.IPv4Address + "`n";
}
$output.Trim("`n");
($_.NetIPv6Interface.ConnectionState -eq "Connected")
$output = @();
foreach($Route in $_.IPv6DefaultGateway) {
$output += $Route.NextHop;
}
$output;
($_.NetIPv4Interface.ConnectionState -eq "Connected")
$output = @();
foreach($Route in $_.IPv4DefaultGateway) {
$output += $Route.NextHop;
}
$output;
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and ($_.Detailed) -and ($_.NetIPv6Interface.IsolationId -ne 0)
$_.NetIPv6Interface.IsolationId
($_.NetIPv4Interface.ConnectionState -eq "Connected") -and ($_.Detailed) -and ($_.NetIPv4Interface.IsolationId -ne 0)
$_.NetIPv4Interface.IsolationId
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and ($_.Detailed)
$_.NetIPv6Interface.NlMTU
($_.NetIPv4Interface.ConnectionState -eq "Connected") -and ($_.Detailed)
$_.NetIPv4Interface.NlMTU
($_.NetIPv6Interface.ConnectionState -eq "Connected") -and ($_.Detailed)
$_.NetIPv6Interface.DHCP
($_.NetIPv4Interface.ConnectionState -eq "Connected") -and ($_.Detailed)
$_.NetIPv4Interface.DHCP
($_.DNSServer.Count -ne 0) -and
(($_.NetIPv4Interface.ConnectionState -eq "Connected") -or
($_.NetIPv6Interface.ConnectionState -eq "Connected"))
$output = "";
foreach($Server in $_.DNSServer) {
foreach($Address in $Server.ServerAddresses) {
$output += $Address + "`n";
}
};
$output.Trim("`n");
DefaultView
TestNetConnectionResult
ComputerName
RemoteAddress
($_.RemotePort) -ne 0
RemotePort
($_.Detailed)
$output = "";
foreach($Address in $_.ResolvedAddresses) {
$output += $Address.IPAddressToString + "`n";
};
$output.Trim("`n");
(($_.RemotePort -ne 0) -and ($_.Detailed))
$output = "";
foreach($Result in $_.MatchingIPsecRules) {
$output += $Result.DisplayName + "`n";
};
$output.Trim("`n");
(($_.RemotePort -ne 0) -and ($_.Detailed))
NetworkIsolationContext
((($_.RemotePort -ne 0) -and ($_.Detailed)) -and (!$_.IsAdmin))
IsAdmin
InterfaceAlias
SourceAddress
$_.Detailed
$_.NetRoute.NextHop
(($_.RemotePort -eq 0) -or (!$_.TcpTestSucceeded))
PingSucceeded
($_.PingReplyDetails -ne $null)
$_.PingReplyDetails.RoundTripTime.ToString() + " ms";
($_.RemotePort) -ne 0
TcpTestSucceeded
($_.TraceRoute -ne $null)
$output = "";
foreach($Result in $_.TraceRoute) {
$output += $Result + "`n";
};
$output.Trim("`n");
TableView
TestNetConnectionResult
15
10
30
20
25
35
ComputerName
RemotePort
RemoteAddress
PingSucceeded
$_.PingReplyDetails.RoundTripTime.ToString() + " ms";
TcpTestSucceeded
DefaultView
NetRouteDiagnostics
ComputerName
RemoteAddress
(($_.ConstrainSourceAddress -ne [System.Net.IPAddress]::IPv6Any) -and
($_.ConstrainSourceAddress -ne [System.Net.IPAddress]::Any))
ConstrainSourceAddress
($_.ConstrainInterfaceIndex -ne 0)
ConstrainInterfaceIndex
SelectedSourceAddress
OutgoingInterfaceIndex
$output = "DestinationPrefix: ";
$output += $_.SelectedNetRoute.DestinationPrefix + "`n";
$output += "NextHop: ";
$output += $_.SelectedNetRoute.NextHop;
$output;
($_.Detailed)
$output = "";
foreach($Event in $_.DestinationAddressSelectionEvents) {
$output += $Event + "`n`n";
};
$output.Trim("`n`n");
($_.Detailed)
$output = "";
foreach($Event in $_.RouteSelectionEvents) {
$output += $Event + "`n`n";
};
$output.Trim("`n`n");
($_.Detailed)
$output = "";
foreach($Event in $_.SourceAddressSelectionEvents) {
$output += $Event + "`n`n";
};
$output.Trim("`n`n");
RouteDiagnosticsSucceeded
--