CmdID / PowerShell / Cmdlets / New
New-NetIPsecMainModeRule
Creates an IPsec main mode rule that tells the computer which peers require IPsec security associations (SAs) for securing network traffic, and how to negotiate those SAs. Windows Server PowerShell reference
From the Windows Server PowerShell reference 18 parameters Its page in the reference
Parameters
Show its 18 parameters
-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.-GPOSessionSpecifies the network GPO from which to retrieve the rules to be created.-GroupSpecifies that only matching firewall rules of the indicated group association are created.-LocalAddressSpecifies that network packets with matching IP addresses match this rule.-MainModeCryptoSetGets the IPsec main mode rules that are associated with the given main mode cryptographic set to be created.-Name, -IDSpecifies that only matching main mode cryptographic sets of the indicated name are created.-Phase1AuthSetGets the main mode rules that are associated with the given phase 1 authentication set to be created.-PlatformSpecifies which version of Windows the associated rule applies.-PolicyStoreSpecifies the policy store from which to retrieve the sets to be created.-ProfileSpecifies one or more profiles to which the rule is assigned.-RemoteAddressSpecifies that network packets with matching IP addresses match this rule.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.