Skip to content

Unregister-PAMComplianceSchedule

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Removes the scheduled compliance scan task. Snapshots and history are kept – only the Task Scheduler job goes.

Terminal window
Unregister-PAMComplianceSchedule [[-TaskName] <string>] [-WhatIf] [-Confirm]

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.

Terminal window
Unregister-PAMComplianceSchedule
Terminal window
Unregister-PAMComplianceSchedule -TaskName 'Harbor Compliance Scan (test)' -WhatIf

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Default: Harbor Compliance Scan.

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.