CmdID / PowerShell / Cmdlets / Get
Get-NetIPsecMainModeSA
Returns active main mode security associations (SA) from the target computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-AllIndicates that all of the main mode security associations within the specified policy store are retrieved.-AsJobRuns the cmdlet as a background job.-AssociatedNetIPsecQuickModeSAGets the quick mode security associations associated with the given main mode security association.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Name, -IDSpecifies that only matching main mode rules of the indicated name are retrieved.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.