PowerShell Logo Small

Get-NetIPsecPhase2AuthSet



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

Gets a phase 2 authorization set from the target computer.

SYNTAX


Get-NetIPsecPhase2AuthSet [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore]
[<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-GPOSession <String>] [-Group <String[]>] [-PolicyStore
<String>] [-PolicyStoreSource <String[]>] [-PolicyStoreSourceType <PolicyStoreType[]>] [-PrimaryStatus <PrimaryStatus[]>] [-Status <String[]>] [-ThrottleLimit <Int32>]
[-TracePolicyStore] [<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore]
-AssociatedNetIPsecRule <CimInstance> [<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore] -DisplayName
<String[]> [<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>]
[-TracePolicyStore] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetIPsecPhase2AuthSet cmdlet returns the instances of phase 2 authentication sets that match the search parameters from the user. See the New-NetIPsecPhase2AuthSet
cmdlet for more information.


This cmdlet returns phase 2 authentication sets by specifying the Name parameter (default), the DisplayName parameter, rule properties, or by associated filters or objects.
The queried rules can be placed into variables and piped to other cmdlets for further modifications or monitoring.



<

RELATED LINKS

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

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-NetIPsecPhase2AuthSet –PolicyStore ActiveStore



This example gets all phase 2 authentication sets currently in the active store. Running this cmdlet without specifying the policy store retrieves the persistent store.




EXAMPLE 2

PS C:\>Get-NetIPsecPhase2AuthSet -DisplayName "Tunnel Mode - Americas (DA Client) - Phase 2 Auth Set"



This example gets a phase 2 authentication set and displays the parameters based upon the localized rule name.




EXAMPLE 3

PS C:\>Get-NetIPSecRule -DisplayName "Authenticate Both Computer and User" | Get-NetIPsecPhase2AuthSet



This example returns the phase 2 authorization set associated with an IPsec rule to examine the properties.