Skip to content

Test-PAMNamingStandard

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Validates a safe name (or a set of segments) against the naming standard without creating anything.

Parameter set Name (default):

Terminal window
Test-PAMNamingStandard [-Name] <string> [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]

Parameter set Segments:

Terminal window
Test-PAMNamingStandard -App <string> -Technology <string> -SubType <string> -AccountType <string> -Environment <string> -SafeType <string> [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]

Parameter set Personal:

Terminal window
Test-PAMNamingStandard -SamAccountName <string> -SafeType <string> [-Location <string>] [-ShowBudget] [-ConfigPath <string>] [-ConfigProfile <string>]

Either pass a full -Name to parse and validate, or pass the input segments plus -SafeType to construct and validate. Returns a result object with the assembled name, length, resolved safe type and any validation errors. Use -ShowBudget to print the per-segment character usage.

Terminal window
Test-PAMNamingStandard -Name 'AB-PAS-SRV-WIN-DA-I-M-P'
Terminal window
Test-PAMNamingStandard -App PAS -Technology SRV -SubType WIN -AccountType DA `
-SafeType shared-managed -Environment P -ShowBudget

Not described in the module help.

Type Required Position Pipeline input
String Yes Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes 0 No

Not described in the module help.

Parameter set Type Required Position Pipeline input
Personal String Yes Named No
Segments String Yes Named No

Personal safes: name = I-<CPM location>-<SamAccountName>.

Type Required Position Pipeline input
String Yes 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 Yes Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes Named No

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.