Unregister-HarborHealthSchedule
Removes the scheduled health scan task. Scan history and the remediation tracker are kept – only the Task Scheduler job goes.
Syntax
Section titled “Syntax”Unregister-HarborHealthSchedule [[-TaskName] <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Unregister-HarborHealthScheduleRemoves the default 'Harbor Health Scan' task after a confirmation.Example 2
Section titled “Example 2”Unregister-HarborHealthSchedule -TaskName 'Harbor Health Scan (test)' -Confirm:$falseRemoves a differently named task without prompting.Parameters
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 Health 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 Health cmdlets
- In PowerShell:
Get-Help Unregister-HarborHealthSchedule -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
