PowerShell Logo Small

Remove-NetIPsecPhase2AuthSet



This is the built-in help made by Microsoft for the command 'Remove-NetIPsecPhase2AuthSet', 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.

SYNOPSIS

Deletes all of the phase 2 authentication sets that match the specified criteria.

SYNTAX


Remove-NetIPsecPhase2AuthSet [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>]
[-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-GPOSession <String>] [-Group <String[]>]
[-PassThru] [-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>] [-TracePolicyStore]
-DisplayName <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>]
[-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore]
-AssociatedNetIPsecRule <CimInstance> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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 IPsec rule.
The resulting queried set is deleted from the computer.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=288196
Get-NetIPsecRule
New-NetIPsecMainModeRule
New-NetIPsecPhase2AuthSet
Open-NetGPO
Save-NetGPO
Set-NetIPsecPhase2AuthSet
New-GPO

REMARKS

<

Examples


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.