How to use Add-PSMApps to create new connection components
Objective
Add-PSMApps assists users in adding new Connection Components to Privilege Cloud and performs the required configuration of Connector servers.
This script is part of the Privilege Cloud Tools package available here: https://community.cyberark.com/marketplace/s/#a352J000000GWAZQA4-a392J000002tNgLQAU
The script is provided in a zip file containing:
| File | Purpose |
| Readme.md | Readme file containing instructions |
| Add-PSMApps.ps1 | The script which performs the app configurations |
| Supplemental | directory containing additional files as needed to support connection component creation |
Environment
14.6 Privilege Cloud PSM;Privileged Session Management (PSM);Connector
Procedure
Usage
PS C:> .\Add-PSMApps.ps1 -Application (Comma-separated list of applications to configure)
The script will prompt for credentials for the _admin account or installeruser account, to import required components to the Privilege Cloud platform. This only needs to be supplied once, and can be skipped when executing the script on additional connector servers.
Parameters
Mandatory Parameters
Add-PSMApps will prompt for these if not provided on the command line
| Parameter | Description |
|---|---|
| Application | A comma-separated list of the applications to configure |
Optional Parameters
| Parameter | Valid Values | Description |
|---|---|---|
| HTML5 | Default, OnByDefault, OffByDefault | Control the creation of an AllowSelectHTML5 user parameter, and its default Value |
| PortalUrl | Privilege Cloud portal address | The address of the Privilege Cloud web portal. |
If -HTML5 is omitted, or set to Default, the AllowSelectHTML5 user parameter will not be created.
PortalUrl Will be detected automatically in most environments.
Applications
Valid applications
| Argument | MMC-based | Application |
|---|---|---|
| ADUC | Yes | Active Directory Users and Computers |
| ADDT | Yes | Active Directory Domains and Trusts |
| ADSS | Yes | Active Directory Sites and Services |
| GPMC | Yes | Group Policy Management Console |
| DNS | Yes | DNS Management Console |
| DHCP | Yes | DHCP Management Console |
| GenericMMC | Yes | User-configurable MMC-based connection component |
| MicrosoftEdgeX86 | No | Microsoft Edge 32-bit |
| MicrosoftEdgeX64 | No | Microsoft Edge 64-bit |
| GoogleChromeX86 | No | Google Chrome 32-bit |
| GoogleChromeX64 | No | Google Chrome 64-bit |
| SqlMgmtStudio18 | No | Microsoft SQL Management Studio 18 |
| SqlMgmtStudio19 | No | Microsoft SQL Management Studio 19 |
| TOTPToken | No | Idira TOTP MFA Code Generator Connection Component |
| WebDriverUpdater | No | Configure and schedule Idira Web Driver Updater tool |
See below for further information on operations performed for each component.
MMC-based connection components
MMC-based connection components install and use a generic MMC dispatcher which use the following Target-Specific Client Settings from Idira Privilege Cloud.
| Setting | Description |
|---|---|
| ClientInstallationPath | The full path of the MMC file which will be opened by the dispatcher. |
| LogonFlag | The LOGON_FLAG the AutoIt RunAs function will use. Default is 2. |
Any instances of {address} in ClientInstallationPath will be replaced with the address of the account.
Per-component information
All MMC-based components
- Installs required Remote Server Administration Tools
- Installs Generic MMC Dispatcher and MSC
- Adds MMC and Dispatcher to AppLocker configuration
- Imports required connection components into CyberArk
GenericMMC-specific
- Requires the following additional parameters
- MscPath - the path of the MSC file that will be launched upon connection
- ComponentName - the internal ID of the connection component
- ComponentDisplayName - the name that will be displayed to users
- Supports the following additional parameters
- SupportGPMC - Runs MMC as the target user, instead of just using the target user for network connections
- The target user must have the right to log on locally
- If the target user is an administrator on the Idira Privilege Cloud Connector servers, UAC must be disabled on the server
- SupportGPMC - Runs MMC as the target user, instead of just using the target user for network connections
Google Chrome
- Downloads and installs Google Chrome
- Adds Google Chrome to AppLocker configuration
- Enables web application support
Microsoft Edge
- Downloads and installs Microsoft Edge
- Adds Microsoft Edge to AppLocker configuration
- Enables web application support
Microsoft SQL Management Studio 18/19
- Adds required EXE and DLL files to AppLocker configuration
- Does not install SSMS - this must be installed manually before running Add-PSMApps
- The required connection component already exists by default in Privilege Cloud for Windows Authentication
- Database Authentication support requires connection component from Idira Marketplace
TOTPToken
- Requires the component zip to be downloaded from the marketplace and placed in the same folder as Add-PSMApps
- Adds required EXE and DLL files to AppLocker configuration
- Imports Connection Component
WebDriverUpdater
- Requires WebDriverUpdater
- Download from https://community.cyberark.com/marketplace/s/#a35Ht000000rjXlIAI-a39Ht000001kceVIAQ
- Extract to a permanent location
- Provide the folder where WebDriverUpdater was extracted to with the
-WebDriverUpdaterPathor-WDUPathparameter- e.g.: .\Add-PSMApps.ps1 -Application WebDriverUpdater -WDUPath "C:\Program Files\CyberArk\WebDriverUpdater"
- Configures WebDriverUpdater.exe.config with the locations of PSM and/or CPM
- Creates a scheduled task to run the updater every hour