Set-HarborWebLogin
Creates, changes or disables the BREAK-GLASS account – the local username + password that always works, even when SSO does not. Exported by both products.
Syntax
Section titled “Syntax”Set-HarborWebLogin [[-Username] <string>] [[-Password] <securestring>] [[-IdleTimeoutMinutes] <int>] [[-Role] <string>] [[-ProfileName] <string>] [[-ConfigPath] <string>] [-AllowBypass] [-Disable] [-WhatIf] [-Confirm]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-HarborWebLogin -Username breakglass # prompts for the passwordExample 2
Section titled “Example 2”Set-HarborWebLogin -DisableParameters
Section titled “Parameters”-AllowBypass
Section titled “-AllowBypass”The testing bypass is gone (demo profiles sign in automatically).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 5 | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-Disable
Section titled “-Disable”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-IdleTimeoutMinutes
Section titled “-IdleTimeoutMinutes”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Int32 |
No | 2 | No |
Default: 20.
-Password
Section titled “-Password”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Security.SecureString |
No | 1 | No |
-ProfileName
Section titled “-ProfileName”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.
-Username
Section titled “-Username”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
-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 Onboard cmdlets
- In PowerShell:
Get-Help Set-HarborWebLogin -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
