This is the built-in help made by Microsoft for the command 'Get-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.
Gets a phase 2 authorization set from the target computer.
Get-NetIPsecPhase2AuthSet [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore] [<C
ommonParameters>]
Get-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-GPOSession <String>] [-Group <String[]>] [-Poli
cyStore <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] -Associate
dNetIPsecRule <CimInstance> [<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore] -DisplayNa
me <String[]> [<CommonParameters>]
Get-NetIPsecPhase2AuthSet [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePoli
cyStore] [<CommonParameters>]
The Get-NetIPsecPhase2AuthSet cmdlet returns the instances of phase 2 authentication sets that match the search parameters from the user. See the New-NetIPsecPhase2Au
thSet 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 ob
jects. The queried rules can be placed into variables and piped to other cmdlets for further modifications or monitoring.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=287566
Get-NetIPSecRule
New-NetIPsecMainModeRule
New-NetIPsecPhase2AuthSet
Open-NetGPO
Save-NetGPO
Set-NetIPsecPhase2AuthSet
New-GPO
<
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 stor
e.
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.