This is the built-in help made by Microsoft for the command 'Remove-NetIPsecMainModeSA', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeSA [-Name] <String[]> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeSA [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeSA [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-AssociatedNetIPsecQuickModeSA <CimInstance> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<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.
<
<
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.