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
The HTML5 Gateway, PTA, domain joins and the hardening GPOs are installed as part of a lab
(New-PASLabConfiguration, then Install-PASLab).
Lab configuration
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.