Get-DSPamLog
Synopsis
Get PAM activity logs.
Syntax
__AllParameterSets
Get-DSPamLog [-DateFilter <DateFilter>] [-After <datetime>] [-Before <datetime>]
[-MessageType <ConnectionLogMessage[]>] [-CredentialID <guid>] [-VaultID <guid>]
[-UserID <string[]>] [-IncludePamSystem] [<CommonParameters>]Description
Get PAM activity logs from the server. Optionally filter by message type, date range, credential, vault, or user. If no date filter is applied, log entries from the last 7 days are fetched. Returns all matching log entries.
Examples
Example 1
PS C:\> Get-DSPamLog -MessageType PamCheckoutAdded, PamCheckoutEnded, PamPasswordViewedGets checkout and password view events from the last 7 days (default).
Example 2
Gets all PAM log entries for Q1 2025. Since -Before defaults to midnight, $before is set to 23:59:59.999 to include the full last day.
Example 3
Gets PAM account import/sync events from the last 30 days and exports to CSV.
Parameters
-After
Start date for custom date range (required when using -DateFilter Custom).
-Before
End date for custom date range (use with -DateFilter Custom). Defaults to current date/time if not specified.
-CredentialID
Filter by credential ID.
-DateFilter
Date filter for PAM logs. Defaults to the last 7 days if not specified.
-IncludePamSystem
Include PAM system events in the results.
-MessageType
Filter by one or more event types.
-UserID
Filter by user IDs.
-VaultID
Filter by vault ID.
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
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSPamLogItem
Notes
For more information, type "Get-Help Get-DSPamLog -detailed". For technical information, type "Get-Help Get-DSPamLog -full".
Last updated
Was this helpful?