Skip to content

Sync-PAMSafeRegister

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Reconciles the local safe register against the live vault: finds drift in both directions and (optionally) backfills pre-existing safes.

Terminal window
Sync-PAMSafeRegister [[-ExcludePattern] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-Backfill] [-MarkMissing] [-AdoptVaultUid] [-WhatIf] [-Confirm]

Report-only by default – no switches, no writes. Classifies every non-system safe in the vault: Matched in vault and in the register VaultOnlyWithUid in vault, standard name, ‘UID:xxNN’ in Description -> backfill candidate (-Backfill appends it) VaultOnlyStandard in vault, standard name, no UID in Description VaultOnlyNonStandard in vault, name does not match the standard MissingFromVault in the register but gone from the vault (-MarkMissing sets status ‘missing-from-vault’) -Backfill skips a candidate whose UID is already taken by a different safe (reported as a conflict) – UIDs must stay unique.

Terminal window
Sync-PAMSafeRegister # report only
Terminal window
Sync-PAMSafeRegister -Backfill -MarkMissing # apply both repairs

When a MATCHED entry’s register UID differs from the vault description’s UID, adopt the vault’s (the vault is the source of truth). Off by default because the UID is the CMDB key – rewriting it is reported, not silent.

Type Required Position Pipeline input
SwitchParameter No Named No

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
String No 1 No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

Regex of safe names to ignore (CyberArk system/internal safes).

Type Required Position Pipeline input
String No 0 No

Default: ^(VaultInternal|Notification Engine|PVWA.*|PasswordManager.*|PSM.*|SharedAuth.*|TelemetryConfig.*|AccountsFeed.*|xRay.*|Pictures|System)$.

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named 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.