This is the built-in help made by Microsoft for the command 'Remove-NetIPsecMainModeSA', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Removes an active main mode security association (SA).
Remove-NetIPsecMainModeSA [-All] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecMainModeSA [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecMainModeSA [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -AssociatedNetIPsecQuickModeSA <CimInstance> [-Confirm] [-WhatIf]
[<CommonParameters>]
Remove-NetIPsecMainModeSA [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
The Remove-NetIPsecMainModeSA cmdlet deletes an established main mode security association (SA).
The main mode SAs can be monitored for information including which peers are currently connected to this computer and which protection suite was used to create the SA. To
view the active main mode SAs with the computer, run the Get-NetIPsecMainModeSA cmdlet. Use the InputObject parameter, or the pipeline, to input the SA into this cmdlet to
remove the association from the computer.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=288194
Get-NetIPsecMainModeSA
<
EXAMPLE 1
PS C:\>Remove-NetIPsecMainModeSA –PolicyStore ActiveStore
This example removes all of the active main mode cryptographic sets on the local computer.
EXAMPLE 2
PS C:\>$computer1 = "RemoteMachineName"
PS C:\>$ipsQMSA = Get-NetIPsecQuickModeSA –Name "3456" –CimSession $computer1
PS C:\>Remove-NetIPsecMainModeSA –CimSession $computer1 –InputObject $ipsQMSA
This example removes a specified main mode security association on a remote computer.