Get-VPASDPASettings


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET DPA SETTINGS


Description:

USE THIS FUNCTION TO RETRIEVE ALL DPA SETTINGS


Syntax:

Get-VPASDPASettings [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$AllSettings = Get-VPASDPASettings


Outputs:

If successful:
{
         "mfaCaching": {
                 "isMfaCachingEnabled": true,
                 "keyExpirationTimeSec": 3600
         },
         "sshMfaCaching": {
                 "isMfaCachingEnabled": false,
                 "keyExpirationTimeSec": 3600
         },
         "rdpMfaCaching": {
                 "isMfaCachingEnabled": true,
                 "keyExpirationTimeSec": 60,
                 "clientIpEnforced": true,
                 "tokenUsageCount": 0
         },
         "rdpTokenMfaCaching": {
                 "isMfaCachingEnabled": false,
                 "keyExpirationTimeSec": 3600,
                 "clientIpEnforced": true,
                 "tokenUsageCount": 0
         },
         "adbMfaCaching": {
                 "isMfaCachingEnabled": true,
                 "keyExpirationTimeSec": 7200,
                 "clientIpEnforced": true,
                 "tokenUsageCount": 0
         },
         "k8sMfaCaching": {
                 "keyExpirationTimeSec": 7200,
                 "clientIpEnforced": true,
                 "tokenUsageCount": 0
         },
         "sshCommandAudit": {
                 "isCommandParsingForAuditEnabled": true,
         "shellPromptForAudit": "(.*)[\u003e#\\$]$"
         },
         "standingAccess": {
                 "standingAccessAvailable": true,
                 "sessionMaxDuration": 120,
                 "sessionIdleTime": 10,
                 "fingerprintValidation": true,
                 "sshStandingAccessAvailable": true,
                 "rdpStandingAccessAvailable": true,
                 "adbStandingAccessAvailable": true
         },
         "rdpFileTransfer": {
                 "enabled": true
         },
         "certificateValidation": {
                 "enabled": false
         },
         "rdpKeyboardLayout": {
                 "layout": "en-us-qwerty"
         },
         "rdpRecording": {
                 "enabled": true
         },
         "logonSequence": {
"logonSequence": "\\[.*\\@.*~]\\$\u003eexec su - {Username}\nPassword:\u003e{Password}"
         }
}

$false if failed