Skip to content

Harbor Onboard cmdlets

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Harbor Onboard 0.59.0 exports 57 commands. Everything the console does is also one of these commands, so it can be scripted and scheduled. The pages are generated from the module’s own help: Get-Help <command> -Full in PowerShell shows the same text.

Terminal window
Import-Module HarborOnboard # after Install-Harbor.ps1 -InstallModule, or from the release folder
Get-Command -Module HarborOnboard
Command What it does
Add-PAMAccount Onboards a single account into an existing safe.
Approve-PAMSafeException Accepts an EXISTING vault safe whose name does not match the naming standard as a governed exception: audited (who/when/why), visible in the Exceptions register on every report, and no longer flagged as rogue.
Compare-PAMComplianceSnapshot Time travel across compliance snapshots: diffs ANY two stored runs – findings that appeared, findings that resolved, and how the score/grade moved between them. Offline.
Compare-PAMSafePermissions RBAC drift report: compares a safe’s ACTUAL members and permissions in the vault against what the rbac-map says they SHOULD be.
Connect-PAMSession Authenticates to CyberArk Privilege Cloud as the Harbor service user and opens the module session every other live cmdlet uses.
ConvertTo-PAMSafeSuggestion Turns a plain-English description of an access need into a standard-compliant safe suggestion (safe type + every input segment), validated by the same naming engine New-PAMSafe uses.
Disconnect-PAMSession Ends the Harbor session, clearing the token and re-auth material from module memory. Safe to call when not connected.
Export-HarborLog Returns a day’s Harbor log as text for download/export: the flat console log, the structured JSON-lines log, or a CSV rendering of the activity.
Export-HarborSiemEvents Ships a day of the structured activity log to a SIEM: Splunk HEC or any JSON collector over HTTP, or an NDJSON file for an agent-based pipeline (Splunk UF, Sentinel AMA, Filebeat) to pick up.
Export-HarborVault Exports a governance/evidence snapshot of the vault + Harbor’s local registers to a single JSON file.
Get-HarborActivity Reads the structured JSON activity log (the .jsonl written alongside the flat-text log) as objects – the audit/activity feed the web UI renders.
Get-HarborConfigDocument Returns the raw JSON text of one of the editable standard files (naming standard / safe permissions standard / safe defaults) so the Settings UI (or a script) can show and edit it.
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.
Get-HarborTlsStatus Is HTTPS set up for a console port? { Port; Bound; IpPort; Thumbprint; NotAfter; ExpiresInDays; Harbor (the cert is Harbor’s own) }. Needs no elevation.
Get-PAMAccountRegister Reads and filters the local account register (every account onboarded by Harbor, with run correlation IDs for audit).
Get-PAMComplianceSchedule Status of the scheduled compliance scan: whether the Task Scheduler job exists (next/last run + last result), plus the latest snapshot’s numbers and diff, and the recent snapshot history.
Get-PAMComplianceSnapshot Browses the G1 snapshot store: no arguments lists every stored compliance snapshot (newest first, metadata per row); -Name or -Latest returns one full snapshot document.
Get-PAMConfigHistory The standards change history: who saved which config document when, with the field-level diff of every save – newest first.
Get-PAMDriftExplanation Claude explains an RBAC drift result in plain English – what drifted, why it matters, and the safest order to fix it.
Get-PAMMonthlySummary The monthly “what Harbor did” summary: safes created and decommissioned, accounts onboarded, compliance movement (score, grade, new vs resolved drift), operator activity – one object per calendar month, optionally written as the branded HTML report.
Get-PAMRogueSafe Flags “rogue” safes in the vault: safes Harbor didn’t provision (not in the local register) and/or whose name doesn’t match the standard.
Get-PAMSafeMember Pulls the LIVE members of a safe straight from the vault – the ground truth behind the RBAC drift report. Use it to see exactly what CyberArk returns for a safe (name, member type, granted permissions).
Get-PAMSafePassport The full lifecycle “passport” of one safe: its register entry, the accounts Harbor onboarded into it, every activity-log line that mentions it (across ALL days), and – when connected – its live members and RBAC drift status. One object that answers “what happened to this safe?”.
Get-PAMSafeRegister Reads and filters the local safe register.
Import-PAMAccounts Bulk account onboarding from a CSV (see Templates/account-import-template.csv).
Import-PAMSafes Bulk safe creation from a CSV (see Templates/safe-import-template.csv).
Initialize-HarborConfig First-run setup wizard. Captures tenant details and writes a gitignored environment.local.json so a new client install reaches “ready” without hand-editing JSON.
Initialize-HarborTls One-time, ELEVATED: sets up HTTPS for the Harbor consoles on this machine – a certificate (generated, reused or yours) bound in http.sys to both consoles’ ports. Exported by both products.
Install-HarborService Installs Harbor as an unattended machine service: a Task Scheduler ONSTART task running the web server headless, with HTTPS bound via http.sys. Requires an elevated console.
Invoke-PAMAccountAction Triggers a CPM lifecycle action on an account: Verify, Change (rotate) or Reconcile. Requires a connected session.
Invoke-PAMComplianceReport One-shot compliance/evidence report: composes RBAC drift, rogue-safe detection and the register stats into a single scored summary, optionally written as a self-contained HTML report.
Invoke-PAMComplianceScan The scheduled-cadence compliance scan: runs the compliance report, writes a dated snapshot, diffs against the previous run and alerts on NEW drift only. Connects itself when no session is open (the profile’s declared service account and its declared secret source – zero prompts), so it runs headless from the scheduler as well as interactively.
New-HarborImportTemplate Generates a ready-to-fill CSV import template, seeded with example rows derived from the active naming standard so operators don’t guess columns or valid values.
New-PAMSafe Creates one CyberArk safe to the Harbor standard: validated name, derived RBAC group membership, managing CPM, UID register entry and audit log.
Register-PAMComplianceSchedule Registers the Windows Task Scheduler job that runs the compliance scan on a cadence: daily at a set time by default, or every N hours. Runs as the CURRENT user without storing a password (S4U logon), so it fires whether or not anyone is signed in.
Remove-PAMSafe Decommissions a safe: marks its register entry ‘decommissioned’ and, only with -DeleteFromVault, deletes the safe from the tenant.
Repair-PAMSafePermissions Remediates RBAC drift on a safe: brings its members + permissions back to the Harbor standard. The fix side of Compare-PAMSafePermissions.
Revoke-PAMSafeException Withdraws a governed naming exception: the safe keeps its register history but is flagged as rogue (non-standard name) again from the next scan. The reverse of Approve-PAMSafeException.
Save-HarborConfigDocument Validates and writes one of the editable standard files (naming / permissions / safe-defaults) from raw JSON text – the Settings UI’s save path.
Set-HarborAssistant Opts a profile in to (or out of) the Claude assistant: writes the per-profile assistant block to the local-override config.
Set-HarborCpmList Sets the list of managing CPMs (name + location) that are selectable when creating a safe – stored per-profile in environment.local.json.
Set-HarborSecretVault Points a profile’s OAuth secret at a SecretManagement vault: writes the per-profile secretManagement { vault, secret } block to the local-override config. -Remove takes the profile back off the vault.
Set-HarborServiceAccount Declares the console’s service account (The service account is explicit). Exported by both products.
Set-HarborSsoConfig Enables CyberArk Identity SSO for the web UI: writes the appAuth block to environment.local.json. Backs the in-app “Set up SSO” wizard; usable from the CLI too.
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.
Show-HarborPermissions Displays the RBAC permission map – which groups go on each safe type and what each can do – rendered straight from rbac-map.json.
Show-HarborStandard Displays the active naming standard – segments, budgets, allowed values and the safe-type map – rendered straight from config.
Start-HarborWeb Launches the local Harbor Onboard web UI – a zero-dependency HttpListener server (bound to 127.0.0.1 only) over the module’s functions.
Sync-PAMSafeRegister Reconciles the local safe register against the live vault: finds drift in both directions and (optionally) backfills pre-existing safes.
Test-HarborSetup The Harbor doctor: checks everything a client install needs, each check green/red with a fix hint. Run it first on every new environment.
Test-PAMAuditLog Verifies the tamper-evident hash chain of a day’s JSONL activity log: proves no entry was altered, removed or inserted since it was written.
Test-PAMConfigImpact What-if for standards edits: BEFORE saving a proposed naming / rbac / policy document, shows exactly which registered safes it would affect – names that stop validating, persona members that get added/removed/re-permissioned, policy violations that appear or resolve. Entirely offline (register + config only).
Test-PAMConnection Live connectivity check for the current session: confirms we can actually reach and call CyberArk right now (session present, token still valid, PVWA API responding). Powers the dashboard’s connection tiles.
Test-PAMNamingStandard Validates a safe name (or a set of segments) against the naming standard without creating anything.
Test-PAMPolicy Evaluates the policy guardrails over the ACTIVE safe register, offline: one row per violation (RuleId, Enforce, SafeName, Detail). Empty output = every registered safe complies (or policy is off).
Uninstall-HarborService Removes the Harbor service task and its http.sys bindings. The deployed files and certificate are kept unless asked for.
Unregister-PAMComplianceSchedule Removes the scheduled compliance scan task. Snapshots and history are kept – only the Task Scheduler job goes.
Commands
With a synopsis 57 of 57
With a description 57 of 57
With at least one example 57 of 57

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.