This is the built-in help made by Microsoft for the command 'Remove-NetIPsecPhase2AuthSet', in PowerShell version 4 - as retrieved from
Windows version 'Microsoft Windows 8.1 Enterprise' 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.
Deletes all of the phase 2 authentication sets that match the specified criteria.
Remove-NetIPsecPhase2AuthSet [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TraceP
olicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonPara
meters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-GPOSession <String>] [-Group <String[]>] [-P
assThru] [-PolicyStore <String>] [-PolicyStoreSource <String[]>] [-PolicyStoreSourceType <PolicyStoreType[]>] [-PrimaryStatus <PrimaryStatus[]>] [-Status <String[]>]
[-ThrottleLimit <Int32>] [-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySt
ore] -DisplayName <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int3
2>] [-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySt
ore] -AssociatedNetIPsecRule <CimInstance> [-Confirm] [-WhatIf] [<CommonParameters>]
The Remove-NetIPsecPhase2AuthSet cmdlet permanently deletes one or more phase 2 authentication sets from the specified policy store.
This cmdlet gets one or more authorization sets to be deleted with the Name parameter (default), the DisplayName parameter, the Group parameter, or by associated IPse
c rule. The resulting queried set is deleted from the computer.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=288196
Get-NetIPsecRule
New-NetIPsecMainModeRule
New-NetIPsecPhase2AuthSet
Open-NetGPO
Save-NetGPO
Set-NetIPsecPhase2AuthSet
New-GPO
<
EXAMPLE 1
PS C:\>Remove-NetIPsecPhase2AuthSet
This example removes all of the static local phase 1 authentication sets. This cmdlet is useful for removing any policy that conflicts with the domain GPO.
EXAMPLE 2
PS C:\>Remove-NetIPsecPhase2AuthSet -DisplayName "Home LAN - Phase 2 Auth Set"
This example deletes a set based on the localized name.
EXAMPLE 3
PS C:\>$ipsRule = Get-NetIPsecRule –DisplayName "Transport Mode - Extranet IPv4"
PS C:\>Remove-NetIPsecPhase2AuthSet –InputObject $ipsRule
This example removes all of the phase 2 authentication sets that are associated with an IPsec rule.