Skip to content

Set-HarborWebLogin

Harbor HealthNo sign-in neededGenerated from the codeDescribes Health 0.22.0

Creates, changes or disables the BREAK-GLASS account – the local username + password that always works, even when SSO does not. Exported by both products.

Terminal window
Set-HarborWebLogin [[-Username] <string>] [[-Password] <securestring>] [[-IdleTimeoutMinutes] <int>] [[-Role] <string>] [[-ProfileName] <string>] [[-ConfigPath] <string>] [-AllowBypass] [-Disable] [-WhatIf] [-Confirm]

Writes the profile’s appLogin block (salted PBKDF2-SHA256, 600k; never the plaintext) into the local-override config – the suite-shared file by default – atomically (Set-HarborBreakGlassAccount). The account is always admin. A console with no sign-in method at all is in FIRST-RUN mode (it shows a one-time setup code); running this from a PowerShell console on the machine is the alternative to that code. A running console picks the change up within a couple of seconds – no restart.

Terminal window
Set-HarborWebLogin -Username breakglass # prompts for the password
Terminal window
Set-HarborWebLogin -Disable

The testing bypass is gone (demo profiles sign in automatically).

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
String No 5 No

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
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
Int32 No 2 No

Default: 20.

Not described in the module help.

Type Required Position Pipeline input
Security.SecureString No 1 No

Not described in the module help.

Type Required Position Pipeline input
String No 4 No

The break-glass account is always admin. Accepted for compatibility with older scripts and ignored (with a warning).

Type Required Position Pipeline input
String No 3 No

Accepted values: admin, operator, viewer.

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

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.