Get-HarborService
Status of the Harbor service install: the scheduled task’s state, whether the port answers, and the TLS binding. The Get-Service equivalent for Harbor’s task-based service.
Syntax
Section titled “Syntax”Get-HarborService [[-Port] <int>] [[-TaskName] <string>]Description
Section titled “Description”Reads the Task Scheduler task (-TaskName, ‘Harbor Onboard Web’ by default), tries a 1-second TCP connect to 127.0.0.1:-Port and reads the http.sys certificate binding for that port. Healthy is $true when the task is Running or the port answers. Needs no elevation and changes nothing; for the certificate’s details and expiry use Get-HarborTlsStatus.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-HarborServiceParameters
Section titled “Parameters”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Int32 |
No | 0 | No |
Default: 8787.
-TaskName
Section titled “-TaskName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
Default: Harbor Onboard Web.
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-HarborService -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
