Unregister-PAMComplianceSchedule
Removes the scheduled compliance scan task. Snapshots and history are kept – only the Task Scheduler job goes.
Syntax
Section titled “Syntax”Unregister-PAMComplianceSchedule [[-TaskName] <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”Removes the Task Scheduler task -TaskName (‘Harbor Compliance Scan’ by default). The compliance snapshots, their history and the grades stay on disk, so Get-PAMComplianceSnapshot and the Status Board keep working; a later Register-PAMComplianceSchedule carries on from them. When no such task exists it returns Removed = $false and changes nothing. Supports -WhatIf and -Confirm.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Unregister-PAMComplianceScheduleExample 2
Section titled “Example 2”Unregister-PAMComplianceSchedule -TaskName 'Harbor Compliance Scan (test)' -WhatIfParameters
Section titled “Parameters”-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-TaskName
Section titled “-TaskName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
Default: Harbor Compliance Scan.
-WhatIf
Section titled “-WhatIf”Shows what the command would do, without doing it.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: wi.
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 Unregister-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.
