Sync-PAMSafeRegister
Reconciles the local safe register against the live vault: finds drift in both directions and (optionally) backfills pre-existing safes.
Syntax
Section titled “Syntax”Sync-PAMSafeRegister [[-ExcludePattern] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-Backfill] [-MarkMissing] [-AdoptVaultUid] [-WhatIf] [-Confirm]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Sync-PAMSafeRegister # report onlyExample 2
Section titled “Example 2”Sync-PAMSafeRegister -Backfill -MarkMissing # apply both repairsParameters
Section titled “Parameters”-AdoptVaultUid
Section titled “-AdoptVaultUid”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 |
-Backfill
Section titled “-Backfill”Not described in the module help.
| 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 | 1 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-ExcludePattern
Section titled “-ExcludePattern”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)$.
-MarkMissing
Section titled “-MarkMissing”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | 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 Sync-PAMSafeRegister -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
