Get-PAMComplianceSchedule
Status of the scheduled compliance scan: whether the Task Scheduler job exists (next/last run + last result), plus the latest snapshot’s numbers and diff, and the recent snapshot history.
Syntax
Section titled “Syntax”Get-PAMComplianceSchedule [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [[-TaskName] <string>]Description
Section titled “Description”Works with no task registered (Registered = false; snapshot data still reported, e.g. after manual Invoke-PAMComplianceScan runs). LastResult 0 means the last scheduled run succeeded; 267011 means the task has not run yet.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-PAMComplianceSchedule -ConfigProfile prodExample 2
Section titled “Example 2”(Get-PAMComplianceSchedule).LastResult -eq 0$true when the last scheduled run succeeded.
Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
-TaskName
Section titled “-TaskName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
Default: Harbor Compliance Scan.
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Get-PAMComplianceSchedule -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
