Get-PAMAuthenticationRestriction
Gets the status on whether PAM authentication restriction is enforced.
Syntax
Default (Default)
Get-PAMAuthenticationRestriction
[[-PrivDomain] <String>]
[[-Credentials] <PSCredential>]
[<CommonParameters>]
Description
The cmdlet returns the status indicating whether the PAM authentication restriction is enforced. If the authentication restriction is enforced, the PAM related service accounts will be allowed to authenticate only on the PAM server.
Examples
EXAMPLE 1
Get-PAMAuthenticationRestriction
PAM authentication restriction has been enforced.
Returns whether PAM authentication restriction is enforced.
Parameters
-Credentials
The credential used for the configuration of PAM authentication restriction, usually the PRIV domain admin credential is required.
Parameter properties
Type: | PSCredential |
Default value: | The credential of the current logon user |
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 |
-PrivDomain
The name of the PRIV domain (NetBIOS or FQDN)
Parameter properties
Type: | String |
Default value: | The name of the current logon user's domain |
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.
Outputs
System.String
The cmdlet will return the status indicating whether the PAM authentication restriction is enforced.