CmdID / PowerShell / Cmdlets / New
New-NetIPsecRule
Creates an IPsec rule that defines security requirements for network connections that match the specified criteria. Windows Server PowerShell reference
From the Windows Server PowerShell reference 39 parameters Its page in the reference
Parameters
Show its 39 parameters
-AllowSetKeySpecifies that the IPsec rule allows trusted intermediaries to override keying material.-AllowWatchKeySpecifies that the IPsec rule allows trusted intermediaries to notify of changes in keying material.-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DescriptionSpecifies that matching firewall rules of the indicated description are created.-DisplayNameSpecifies that only matching firewall rules of the indicated display name are created.-EnabledSpecifies that matching main mode rules of the indicated state are created.-EncryptedTunnelBypassIndicates that matching IPsec rules of the specified value are created.-ForwardPathLifetimeSpecifies that matching IPsec rules of the specified path lifetime value are created.-GPOSessionSpecifies the network GPO from which to retrieve the rules to be created.-GroupSpecifies that only matching IPsec rules of the indicated group association are created.-IPsecRuleName, -ID, -NameSpecifies Indicates that only matching main mode cryptographic sets of the indicated name are created.-InboundSecurity, -SecInSpecifies that only matching IPsec rules of the indicated group association are created.-InterfaceAliasSpecifies the alias of the interface that applies to the traffic.-InterfaceTypeSpecifies that only network connections made through the indicated interface types are subject to the requirements of this rule.-KeyModuleSpecifies that matching IPsec rules of the indicated key module are created.-LocalAddressSpecifies that network packets with matching IP addresses match this rule.-LocalPortSpecifies that network packets with matching IP port numbers match this rule.-LocalTunnelEndpointSpecifies the IP address of the computer or gateway device that sends traffic from computers that match the *LocalAddress* parameter value to computers that match the *RemoteAddress* parameter value.-MachineSpecifies that only network packets that are authenticated as incoming from or outgoing to a computer identified in the list of computer accounts (SID) match this rule.-ModeSpecifies the type of IPsec mode connection that the IPsec rule defines.-OutboundSecurity, -SecOutSpecifies that matching IPsec rules of the indicated security policy are created.-Phase1AuthSetGets the main mode rules that are associated with the given phase 1 authentication set to be created.-Phase2AuthSetGets the IPsec rules that are associated with the given phase 2 authentication set to be created.-PlatformSpecifies which version of Windows the associated rule applies.-PolicyStoreSpecifies the policy store from which to retrieve the rules to be created.-ProfileSpecifies one or more profiles to which the rule is assigned.-ProtocolSpecifies that network packets with matching IP addresses match this rule.-QuickModeCryptoSetSpecifies that matching IPsec rules of the specified quick mode cryptographic set are retrieved.-RemoteAddressSpecifies that network packets with matching IP addresses match this rule.-RemotePortSpecifies that network packets with matching IP port numbers match this rule.-RemoteTunnelEndpointSpecifies the IP address of the computer or gateway device that secures traffic from computers that match the *LocalAddress* parameter value to computers that match the *RemoteAddress* parameter valu…-RemoteTunnelHostnameSpecifies that matching IPsec rules of the specified second end point tunnel host name are created.-RequireAuthorizationIndicates that matching IPsec rules of the specified value are created.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-TunnelTypeSpecifies that matching IPsec rules of the indicated tunnel type are created.-UserSpecifies that matching IPsec rules of the indicated user accounts are created.-WhatIf, -wiShows what would happen if the cmdlet runs.