Skip to content

Unregister-HarborHealthSchedule

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Removes the scheduled health scan task. Scan history and the remediation tracker are kept – only the Task Scheduler job goes.

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

Unregisters the Task Scheduler job that Register-HarborHealthSchedule created. The stored scans, their diffs and the remediation tracker stay where they are, so History and Remediation still show them, and the job can be registered again at any time. Returns Removed = $false with a note when no such task exists. Windows only; supports -WhatIf/-Confirm.

Terminal window
Unregister-HarborHealthSchedule
Removes the default 'Harbor Health Scan' task after a confirmation.
Terminal window
Unregister-HarborHealthSchedule -TaskName 'Harbor Health Scan (test)' -Confirm:$false
Removes a differently named task without prompting.

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