Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ Given a directory of files that make up the connection component / connector, it
Creates a connection component package zip archive for the `PSM-SampleApp` connection component. It includes all the files in `C:\SampleAppDispatcherFiles` directory and creates a `package.json` where `C:\SampleApp\SampleApp.exe` will be added to the AppLocker rules. It also extracts the connection component settings from the existing `PVConfiguration.xml` file defined and adds them as `CC-PSM-SampleApp.xml` to the archive.

```powershell
New-PASConnectionComponentPackage `
-ConnectionComponentId PSM-SampleApp `
-Path C:\SampleAppDispatcherFiles `
-ConnectionComponentApplicationPaths @('C:\SampleApp\SampleApp.exe') `
-CreateConnectionComponentXmlFile $true `
-PVConfigurationPath 'C:\Program Files (x86)\CyberArk\PSM\Temp\PVConfiguration.xml' `
-DestinationPath C:\ConnectionComponentPackages
$Parameters = @{
ConnectionComponentId = 'PSM-SampleApp'
Path = 'C:\SampleAppDispatcherFiles'
ConnectionComponentApplicationPaths = @('C:\SampleApp\SampleApp.exe')
CreateConnectionComponentXmlFile = $true
PVConfigurationPath = 'C:\Program Files (x86)\CyberArk\PSM\Temp\PVConfiguration.xml'
DestinationPath = 'C:\ConnectionComponentPackages'
}

New-PASConnectionComponentPackage @Parameters
```

## New-PASPlatformPackage
Expand Down Expand Up @@ -61,9 +64,12 @@ Given an existing PVWA settings file and a CPM file that make up the platform, i
Creates a platform package zip archive for the SamplePlatform platform using the provided CPM policy file. The PVWA settings file is extracted out of an existing `Policies.xml` file and included in the zip archive.

```powershell
New-PASPlatformPackage `
-PlatformId 'SamplePlatform' `
-CPMPolicyFile 'C:\SamplePlatformBuild\my-platforms-cpm-settings.ini' `
-ExtractPVWASettings $true `
-PoliciesFile 'C:\Program Files (x86)\CyberArk\PSM\Temp'
$Parameters = @{
PlatformId = 'SamplePlatform'
CPMPolicyFile = 'C:\SamplePlatformBuild\my-platforms-cpm-settings.ini'
ExtractPVWASettings = $true
PoliciesFile = 'C:\Program Files (x86)\CyberArk\PSM\Temp'
}

New-PASPlatformPackage @Parameters
```