Skip to content

Commands

PASeasyInstall is one PowerShell module with 26 commands. Everything the window does is one of them. No command prints a password: accounts are passed as PSCredential, passwords as SecureString, or they are asked for.

Get-Command -Module PASeasyInstall
Get-Help Install-PASLab -Full          # every command has help with examples
Get-Help about_PASeasyInstall          # an overview

A lab in five commands

$media = Get-PASMediaInventory -Path D:\CyberArk, D:\Licenses | Get-PASMediaSelection
$cfg = New-PASLabConfiguration -Environment MyLab -VaultMode Primary -PrimaryAddress 192.0.2.11 `
    -ControllerAddress 192.0.2.10 -Media $media -SecurityProfile Lab `
    -Instances @(@{ Type = 'PVWA'; Name = 'PVWA01'; Address = '192.0.2.21' },
                 @{ Type = 'CPM';  Name = 'CPM01';  Address = '192.0.2.21' })
Export-PASLabConfiguration -Configuration $cfg -Path .\MyLab.json
Install-PASLab -Path .\MyLab.json -Wait
Test-PASHealth -Path .\MyLab.json -VaultCredential (Get-Credential Administrator)

Install

Command What it does
Install-PASLab Installs everything a lab configuration describes, the servers at the same time
Install-PASVault Installs a Primary Vault, or a Primary and DR Vault pair
Install-PASPVWA Installs PVWA and registers it with an existing Vault
Install-PASCPM Installs CPM and registers it with an existing Vault
Install-PASPSM Installs PSM and registers it with an existing Vault
Install-PASPSMP Installs PSM for SSH on a Linux server and registers it with an existing Vault
Install-PASDomainController Creates a new Active Directory forest for a lab

The HTML5 Gateway, PTA, domain joins and the hardening GPOs are installed as part of a lab (New-PASLabConfiguration, then Install-PASLab).

Lab configuration

Command What it does
New-PASLabConfiguration Composes the configuration of a lab. Contacts nothing
Test-PASLabConfiguration Checks a configuration, with -CheckMedia also the installer files
Get-PASLabPlan Shows what a configuration would install
Export-PASLabConfiguration Saves a configuration as a JSON file (never a password)
Import-PASLabConfiguration Reads a configuration from a JSON file
Get-PASCredentialRequirement Lists the accounts and passwords a configuration needs
Get-PASStageCatalog Lists the installation steps of a component type, in order

Media

Command What it does
Get-PASMediaInventory Finds the installers, the license and the key in folders, files and ZIP files
Get-PASMediaSelection Picks one installer per component

Runs

Command What it does
Get-PASRun Lists the runs of this controller, or shows one run
Get-PASRunEvent The progress events of a run; -Failed shows what failed
Wait-PASRun Follows a run until it ends
Resume-PASRun Continues a run that stopped; -RetryStep runs a failed step again
Stop-PASRun Gives a run up. The server locks stay; -ReleaseLocksAfterReset removes them after you reset the servers

Checks and diagnostics

Command What it does
Test-PASPreflight Checks, without changing anything, that the servers are ready
Test-PASHealth Checks an installed lab: PVWA sign-in, registered and connected components, PTA reachable from PVWA, DR replication
Export-PASDiagnostics Writes a ZIP of one run without passwords
Get-PASRunLog Reads the journal of a run, or the end of a CyberArk log on a server

The window

Command What it does
Start-PASeasyInstall Opens the window; -Backend Mock for the simulated installer

What the commands have in common

  • Nothing happens without a question. The commands that install or change something check the input first and ask for confirmation. -WhatIf shows what would happen and asks for nothing; -Confirm:$false skips the question.
  • Accounts and passwords are asked for when you do not pass them. To run unattended, pass -CredentialMap and -SecretMap, or with the Lab profile one -LabPassword. Get-PASCredentialRequirement lists what a lab needs.
  • -SecurityProfile is Secure by default in every command, for compatibility. Pass Lab: it is the only profile that was tested (CyberArk 15.0 and 15.2), and the window always uses it. Secure is not qualified; see Lab and Secure profiles.
  • Install commands return a run id. The installation runs in its own process. -Wait follows it.