FILE: C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetSecurity\NetSecurity.formats.ps1xml
--
NetFirewallRule_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetFirewallRule
Name
DisplayName
Description
DisplayGroup
Group
Enabled
Profile
Platform
Direction
Action
EdgeTraversalPolicy
LooseSourceMapping
LocalOnlyMapping
Owner
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetFirewallRule_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetFirewallRule
5
10
Name
DisplayName
DisplayGroup
Enabled
Profile
Direction
Action
NetIPsecRule_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetConSecRule
IPsecRuleName
DisplayName
Description
DisplayGroup
Group
Enabled
Profile
Platform
Mode
InboundSecurity
OutboundSecurity
QuickModeCryptoSet
Phase1AuthSet
Phase2AuthSet
KeyModule
AllowWatchKey
AllowSetKey
LocalTunnelEndpoint
RemoteTunnelEndpoint
RemoteTunnelHostname
ForwardPathLifetime
EncryptedTunnelBypass
RequireAuthorization
User
Machine
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecRule_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetConSecRule
5
10
IPsecRuleName
DisplayName
DisplayGroup
Enabled
Profile
Mode
InboundSecurity
OutboundSecurity
NetIPsecMainModeRule_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetMainModeRule
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetMainModeRule
Name
DisplayName
Description
DisplayGroup
Group
Enabled
Profile
Platform
MainModeCryptoSet
Phase1AuthSet
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecMainModeRule_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetMainModeRule
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetMainModeRule
5
10
Name
DisplayName
DisplayGroup
Enabled
Profile
NetFirewallAddressFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetAddressFilter
LocalAddress
RemoteAddress
NetFirewallAddressFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetAddressFilter
LocalAddress
RemoteAddress
NetFirewallApplicationFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetApplicationFilter
Program
Package
NetFirewallApplicationFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetApplicationFilter
Program
Package
NetFirewallInterfaceFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetInterfaceFilter
InterfaceAlias
NetFirewallInterfaceFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetInterfaceFilter
InterfaceAlias
NetFirewallInterfaceTypeFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetInterfaceTypeFilter
InterfaceType
NetFirewallInterfaceTypeFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetInterfaceTypeFilter
InterfaceType
NetFirewallSecurityFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetNetworkLayerSecurityFilter
Authentication
Encryption
OverrideBlockRules
LocalUser
RemoteUser
RemoteMachine
NetFirewallSecurityFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetNetworkLayerSecurityFilter
Authentication
Encryption
OverrideBlockRules
LocalUser
RemoteUser
RemoteMachine
NetFirewallPortFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetProtocolPortFilter
Protocol
LocalPort
RemotePort
IcmpType
DynamicTarget
NetFirewallPortFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetProtocolPortFilter
Protocol
LocalPort
RemotePort
IcmpType
DynamicTarget
NetFirewallServiceFilter_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetServiceFilter
Service
NetFirewallServiceFilter_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetServiceFilter
Service
NetIPsecPhase1AuthSet_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEP1AuthSet
Name
DisplayName
Description
DisplayGroup
Group
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationProposals($_.Proposals)
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecPhase1AuthSet_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEP1AuthSet
Name
DisplayName
DisplayGroup
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationSummary($_.Proposals)
NetIPsecPhase2AuthSet_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEP2AuthSet
Name
DisplayName
Description
DisplayGroup
Group
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationProposals($_.Proposals)
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecPhase2AuthSet_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEP2AuthSet
Name
DisplayName
DisplayGroup
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationSummary($_.Proposals)
NetIPsecAuthProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEBasicAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEBasicAuthProposal
AuthenticationMethod
NetIPsecAuthProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEBasicAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEBasicAuthProposal
AuthenticationMethod
NetIPsecKerbAuthProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEKerbAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEKerbAuthProposal
AuthenticationMethod
Proxy
NetIPsecKerbAuthProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEKerbAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEKerbAuthProposal
AuthenticationMethod
Proxy
NetIPsecPskAuthProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEPSKAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEPSKAuthProposal
AuthenticationMethod
PreSharedKey
NetIPsecPskAuthProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEPSKAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEPSKAuthProposal
AuthenticationMethod
PreSharedKey
NetIPsecCertAuthProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKECertAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKECertAuthProposal
AuthenticationMethod
Authority
AuthorityType
ExcludeCAName
AccountMapping
Signing
SubjectName
SubjectNameType
ExtendedKeyUsage
Thumbprint
FollowRenewal
SelectionCriteria
ValidationCriteria
NetIPsecCertAuthProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKECertAuthProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKECertAuthProposal
AuthenticationMethod
Authority
AuthorityType
ExcludeCAName
AccountMapping
Signing
SubjectName
SubjectNameType
ExtendedKeyUsage
Thumbprint
FollowRenewal
SelectionCriteria
ValidationCriteria
NetIPsecMainModeCryptoSet_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEMMCryptoSet
Name
DisplayName
Description
DisplayGroup
Group
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatMainModeCryptoProposals($_.Proposals)
MaxMinutes
MaxSessions
ForceDiffieHellman
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecMainModeCryptoSet_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEMMCryptoSet
Name
DisplayName
DisplayGroup
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatMainModeCryptoProposals($_.Proposals)
MaxMinutes
MaxSessions
ForceDiffieHellman
NetIPsecQuickModeCryptoSet_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEQMCryptoSet
Name
DisplayName
Description
DisplayGroup
Group
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatQuickModeCryptoProposals($_.Proposals)
PfsGroup
PrimaryStatus
Status
EnforcementStatus
PolicyStoreSource
PolicyStoreSourceType
NetIPsecQuickModeCryptoSet_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEQMCryptoSet
Name
DisplayName
DisplayGroup
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatQuickModeCryptoProposals($_.Proposals)
PfsGroup
NetIPsecMainModeCryptoProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEMMCryptoProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEMMCryptoProposal
Encryption
Hash
KeyExchange
NetIPsecMainModeCryptoProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEMMCryptoProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEMMCryptoProposal
Encryption
Hash
KeyExchange
NetIPsecQuickModeCryptoProposal_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEQMCryptoProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEQMCryptoProposal
Encapsulation
AhHash
EspHash
Encryption
MaxKilobytes
MaxMinutes
NetIPsecQuickModeCryptoProposal_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIKEQMCryptoProposal
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEQMCryptoProposal
Encapsulation
AhHash
EspHash
Encryption
MaxKilobytes
MaxMinutes
NetFirewallProfile_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetFirewallProfile
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetFirewallProfile
Name
Enabled
DefaultInboundAction
DefaultOutboundAction
AllowInboundRules
AllowLocalFirewallRules
AllowLocalIPsecRules
AllowUserApps
AllowUserPorts
AllowUnicastResponseToMulticast
NotifyOnListen
EnableStealthModeForIPsec
LogFileName
LogMaxSizeKilobytes
LogAllowed
LogBlocked
LogIgnored
DisabledInterfaceAliases
NetFirewallProfile_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetFirewallProfile
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetFirewallProfile
Name
Enabled
DefaultInboundAction
DefaultOutboundAction
AllowInboundRules
AllowLocalFirewallRules
AllowLocalIPsecRules
AllowUserApps
AllowUserPorts
AllowUnicastResponseToMulticast
NotifyOnListen
EnableStealthModeForIPsec
LogFileName
LogMaxSizeKilobytes
LogAllowed
LogBlocked
LogIgnored
DisabledInterfaceAliases
NetIPsecPolicyChange_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetSecDeltaCollection
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetSecDeltaCollection
Action
EndpointType
PolicyStore
IPsecRuleDisplayName
IPv4Addresses
IPv6Addresses
NameResolutionFailures
NetIPsecPolicyChange_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetSecDeltaCollection
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetSecDeltaCollection
Action
EndpointType
PolicyStore
IPsecRuleDisplayName
IPv4Addresses
IPv6Addresses
NameResolutionFailures
NetIPsecDospSetting_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIPsecDoSPSetting
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIPsecDoSPSetting
Name
StateIdleTimeoutSeconds
PerIPRateLimitQueueIdleTimeoutSeconds
IpV6IPsecUnauthDscp
IpV6IPsecUnauthRateLimitBytesPerSec
IpV6IPsecUnauthPerIPRateLimitBytesPerSec
IpV6IPsecAuthDscp
IpV6IPsecAuthRateLimitBytesPerSec
IcmpV6Dscp
IcmpV6RateLimitBytesPerSec
IpV6FilterExemptDscp
IpV6FilterExemptRateLimitBytesPerSec
DefBlockExemptDscp
DefBlockExemptRateLimitBytesPerSec
MaxStateEntries
MaxPerIPRateLimitQueues
EnabledKeyingModules
FilteringFlags
PublicInterfaceAliases
PrivateInterfaceAliases
PublicV6Address
PrivateV6Address
EffectiveAddressFamily
NetIPsecDospSetting_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIPsecDoSPSetting
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIPsecDoSPSetting
Name
StateIdleTimeoutSeconds
PerIPRateLimitQueueIdleTimeoutSeconds
IpV6IPsecUnauthDscp
IpV6IPsecUnauthRateLimitBytesPerSec
IpV6IPsecUnauthPerIPRateLimitBytesPerSec
IpV6IPsecAuthDscp
IpV6IPsecAuthRateLimitBytesPerSec
IcmpV6Dscp
IcmpV6RateLimitBytesPerSec
IpV6FilterExemptDscp
IpV6FilterExemptRateLimitBytesPerSec
DefBlockExemptDscp
DefBlockExemptRateLimitBytesPerSec
MaxStateEntries
MaxPerIPRateLimitQueues
EnabledKeyingModules
FilteringFlags
PublicInterfaceAliases
PrivateInterfaceAliases
PublicV6Address
PrivateV6Address
EffectiveAddressFamily
NetIPsecIdentity_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIPsecIdentity
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIPsecIdentity
ImpersonationType
AuthenticationMethod
Flags
NetIPsecIdentity_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetIPsecIdentity
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIPsecIdentity
ImpersonationType
AuthenticationMethod
Flags
NetIPsecMainModeSA_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetMainModeSA
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetMainModeSA
Name
LocalEndpoint
RemoteEndpoint
$_.LocalFirstId.Identity
$_.LocalFirstId.ImpersonationType
$_.LocalFirstId.AuthenticationMethod
$_.LocalFirstId.Flags
$_.RemoteFirstId.Identity
$_.RemoteFirstId.ImpersonationType
$_.RemoteFirstId.AuthenticationMethod
$_.RemoteFirstId.Flags
$_.LocalSecondId.Identity
$_.LocalSecondId.ImpersonationType
$_.LocalSecondId.AuthenticationMethod
$_.LocalSecondId.Flags
$_.RemoteSecondId.Identity
$_.RemoteSecondId.ImpersonationType
$_.RemoteSecondId.AuthenticationMethod
$_.RemoteSecondId.Flags
CipherAlgorithm
HashAlgorithm
GroupId
KeyModule
MaxQMSAs
LifetimeSeconds
LocalUdpEncapsulationPort
RemoteUdpEncapsulationPort
ExtendedFilterId
NetIPsecMainModeSA_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetMainModeSA
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetMainModeSA
Name
LocalEndpoint
RemoteEndpoint
$_.LocalFirstId.Identity
$_.LocalFirstId.ImpersonationType
$_.LocalFirstId.AuthenticationMethod
$_.LocalFirstId.Flags
$_.RemoteFirstId.Identity
$_.RemoteFirstId.ImpersonationType
$_.RemoteFirstId.AuthenticationMethod
$_.RemoteFirstId.Flags
$_.LocalSecondId.Identity
$_.LocalSecondId.ImpersonationType
$_.LocalSecondId.AuthenticationMethod
$_.LocalSecondId.Flags
$_.RemoteSecondId.Identity
$_.RemoteSecondId.ImpersonationType
$_.RemoteSecondId.AuthenticationMethod
$_.RemoteSecondId.Flags
CipherAlgorithm
HashAlgorithm
GroupId
KeyModule
MaxQMSAs
LifetimeSeconds
LocalUdpEncapsulationPort
RemoteUdpEncapsulationPort
ExtendedFilterId
NetIPsecQuickModeSA_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetQuickModeSA
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetQuickModeSA
Name
LocalEndpoint
RemoteEndpoint
TransportLayerFilterName
EncapsulationMode
Direction
LocalPort
RemotePort
IpProtocol
InterfaceAlias
RealIfProfileId
LocalUdpEncapsulationPort
RemoteUdpEncapsulationPort
SPI
FirstTransformType
FirstIntegrityAlgorithm
FirstCipherAlgorithm
SecondSpi
SecondTransformType
SecondIntegrityAlgorithm
SecondCipherAlgorithm
Flags
MmSaId
PfsGroupId
PeerV4PrivateAddress
QuickModeFilterid
LifetimeSeconds
LifetimeKilobytes
LifetimePackets
IdleDurationSeconds
NdAllowClearTimeoutSeconds
NapContext
QmSaId
VirtualIfTunnelId
TrafficSelectorId
MmTargetName
EmTargetName
ExplicitCredentials
NetIPsecQuickModeSA_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetQuickModeSA
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetQuickModeSA
Name
LocalEndpoint
RemoteEndpoint
TransportLayerFilterName
EncapsulationMode
Direction
LocalPort
RemotePort
IpProtocol
InterfaceAlias
RealIfProfileId
LocalUdpEncapsulationPort
RemoteUdpEncapsulationPort
SPI
FirstTransformType
FirstIntegrityAlgorithm
FirstCipherAlgorithm
SecondSpi
SecondTransformType
SecondIntegrityAlgorithm
SecondCipherAlgorithm
Flags
MmSaId
PfsGroupId
PeerV4PrivateAddress
QuickModeFilterid
LifetimeSeconds
LifetimeKilobytes
LifetimePackets
IdleDurationSeconds
NdAllowClearTimeoutSeconds
NapContext
QmSaId
VirtualIfTunnelId
TrafficSelectorId
MmTargetName
EmTargetName
ExplicitCredentials
NetFirewallSetting_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetSecuritySettingData
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetSecuritySettingData
Name
Exemptions
EnableStatefulFtp
EnableStatefulPptp
ActiveProfile
RemoteMachineTransportAuthorizationList
RemoteMachineTunnelAuthorizationList
RemoteUserTransportAuthorizationList
RemoteUserTunnelAuthorizationList
RequireFullAuthSupport
CertValidationLevel
AllowIPsecThroughNAT
MaxSAIdleTimeSeconds
KeyEncoding
EnablePacketQueuing
NetFirewallSetting_Tableview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/MSFT_NetSecuritySettingData
Microsoft.Management.Infrastructure.CimInstance#MSFT_NetSecuritySettingData
Name
Exemptions
EnableStatefulFtp
EnableStatefulPptp
ActiveProfile
RemoteMachineTransportAuthorizationList
RemoteMachineTunnelAuthorizationList
RemoteUserTransportAuthorizationList
RemoteUserTunnelAuthorizationList
RequireFullAuthSupport
CertValidationLevel
AllowIPsecThroughNAT
MaxSAIdleTimeSeconds
KeyEncoding
EnablePacketQueuing
MSFT_NetRuleDeep_Listview
Microsoft.Management.Infrastructure.CimInstance#root/standardcimv2/NetSecurityDeepEnumElement
if ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetFirewallRule")
{(
(New-Object -TypeName System.String '-',((Get-Host).ui.rawui.windowsize.width - 1)) + "`r`n" +
"`r`n`r`n`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Name, "Name", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayName, "DisplayName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Description, "Description", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayGroup, "DisplayGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Group, "Group", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Enabled, "Enabled", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Profile, "Profile", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.Platform), "Platform", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Direction, "Direction", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Action, "Action", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.EdgeTraversalPolicy, "EdgeTraversalPolicy", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.LooseSourceMapping, "LooseSourceMapping", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.LocalOnlyMapping, "LocalOnlyMapping", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Owner, "Owner", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PrimaryStatus, "PrimaryStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Status, "Status", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.EnforcementStatus), "EnforcementStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSource, "PolicyStoreSource", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSourceType, "PolicyStoreSourceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetAddressFilter")
{(
"`r`n`$_ | Get-NetFirewallAddressFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.LocalAddress), " LocalAddress", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.RemoteAddress), " RemoteAddress", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetApplicationFilter")
{(
"`r`n`$_ | Get-NetFirewallApplicationFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Program, " Program", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Package, " Package", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetServiceFilter")
{(
"`r`n`$_ | Get-NetFirewallServiceFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Service, " Service", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetInterfaceFilter")
{(
"`r`n`$_ | Get-NetFirewallInterfaceFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.InterfaceAlias), " InterfaceAlias", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetInterfaceTypeFilter")
{(
"`r`n`$_ | Get-NetFirewallInterfaceTypeFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.InterfaceType, " InterfaceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetProtocolPortFilter")
{(
"`r`n`$_ | Get-NetFirewallPortFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Protocol, " Protocol", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.LocalPort), " LocalPort", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.RemotePort), " RemotePort", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.IcmpType), " IcmpType", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DynamicTarget, " DynamicTarget", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetNetworkLayerSecurityFilter")
{(
"`r`n`$_ | Get-NetFirewallSecurityFilter`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Authentication, " Authentication", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Encryption, " Encryption", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.OverrideBlockRules, " OverrideBlockRules", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.LocalUser, " LocalUser", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.RemoteUser, " RemoteUser", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.RemoteMachine, " RemoteMachine", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetConSecRule")
{(
(New-Object -TypeName System.String '-',((Get-Host).ui.rawui.windowsize.width - 1)) + "`r`n" +
"`r`n`r`n`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.IPsecRuleName, "IPsecRuleName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayName, "DisplayName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Description, "Description", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayGroup, "DisplayGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Group, "Group", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Enabled, "Enabled", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Profile, "Profile", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.Platform), "Platform", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Mode, "Mode", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.InboundSecurity, "InboundSecurity", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.OutboundSecurity, "OutboundSecurity", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.QuickModeCryptoSet, "QuickModeCryptoSet", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Phase1AuthSet, "Phase1AuthSet", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Phase2AuthSet, "Phase2AuthSet", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.KeyModule, "KeyModule", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.AllowWatchKey, "AllowWatchKey", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.AllowSetKey, "AllowSetKey", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.LocalTunnelEndpoint), "LocalTunnelEndpoint", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.RemoteTunnelEndpoint), "RemoteTunnelEndpoint", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.RemoteTunnelHostname, "RemoteTunnelHostname", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.ForwardPathLifetime, "ForwardPathLifetime", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.EncryptedTunnelBypass, "EncryptedTunnelBypass", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.RequireAuthorization, "RequireAuthorization", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.User, "User", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Machine, "Machine", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PrimaryStatus, "PrimaryStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Status, "Status", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.EnforcementStatus), "EnforcementStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSource, "PolicyStoreSource", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSourceType, "PolicyStoreSourceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEQMCryptoSet")
{(
"`r`n`$_ | Get-NetQuickModeCryptoSet`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Name, " Name", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayName, " DisplayName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Description, " Description", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayGroup, " DisplayGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Group, " Group", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock([Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatQuickModeCryptoProposals($_.Proposals), " Proposal", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PerfectForwardSecrecyGroup, " PfsGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PrimaryStatus, " PrimaryStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Status, " Status", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.EnforcementStatus), " EnforcementStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSource, " PolicyStoreSource", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSourceType, " PolicyStoreSourceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEP1AuthSet")
{(
"`r`n`$_ | Get-NetIPsecPhase1AuthSet`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Name, " Name", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayName, " DisplayName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Description, " Description", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayGroup, " DisplayGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Group, " Group", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock([Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationProposals($_.Proposals), " Proposal", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PrimaryStatus, " PrimaryStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Status, " Status", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.EnforcementStatus), " EnforcementStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSource, " PolicyStoreSource", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSourceType, " PolicyStoreSourceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
elseif ($_.PSTypeNames -contains "Microsoft.Management.Infrastructure.CimInstance#MSFT_NetIKEP2AuthSet")
{(
"`r`n`$_ | Get-NetIPsecPhase2AuthSet`r`n" +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Name, " Name", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayName, " DisplayName", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Description, " Description", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.DisplayGroup, " DisplayGroup", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Group, " Group", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock([Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatAuthenticationProposals($_.Proposals), " Proposal", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PrimaryStatus, " PrimaryStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.Status, " Status", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock(($_.EnforcementStatus), " EnforcementStatus", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSource, " PolicyStoreSource", 26, (Get-Host).ui.rawui.windowsize.width) +
[Microsoft.Windows.Firewall.Commands.Formatting.Formatter]::FormatTextBlock($_.PolicyStoreSourceType, " PolicyStoreSourceType", 26, (Get-Host).ui.rawui.windowsize.width)
).TrimEnd()}
--