New-PAMSession
Creates a session for Privileged Access Management administration with a different server.
Syntax
Default (Default)
New-PAMSession
[[-Domain] <String>]
[[-Credentials] <PSCredential>]
[<CommonParameters>]
Description
The New-PAMSession cmdlet creates a session for interaction with AD and MIM Service for Privileged Access Management administration.
Examples
EXAMPLE 1
$session = New-PAMSession
This command prepares a session with a local Active Directory server using the identity of the currently logged in user.
Parameters
-Credentials
credentials of a privileged access management (PAM) domain administrator.
Parameter properties
| Type: | PSCredential |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 2 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Domain
domain name of the privileged access management (PAM) domain.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.