Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Powershell Module for CyberArk PACLI

License

NotificationsYou must be signed in to change notification settings

pspete/PoShPACLI

Repository files navigation

Disconnect-from-Vault

Powershell PACLI Module for CyberArk EPV

Master BranchLatest BuildCodeFactorCoveragePowerShell GalleryLicense
appveyortestscodefactorcodecovpsgallerylicense
coverallsdownloads

Use the native functions of the CyberArk PACLI command line utility translated into PowerShell.

If you are landing here and interested in using PowerShell to automate an aspect of CyberArk,

I recommend investigating mypsPAS module first, to see if you can achieve what you need with the REST API.


Usage & Examples

An identical process to using the PACLI tool on its own should be followed.

  • Check therelationship table to determine what PoShPACLI function exposes which PACLI command.

Initial Configuration

Set-PVConfiguration must be run before using the module for the first time.This function identifies the location of thePACLI.exe utility to the module.

Set-PVConfiguration

Example: Connecting to a Vault

When starting PACLI, defining a vault, & Authenticating, any values provided forSessionID,Vault name &User name are automatically provided to future PoShPACLI commands.

Connecting-to-a-Vault

TheGet-PVConfiguration function is used to view the current values in use by the module.

Example: Add Password Object to Safe

Execute the sequence of commands to complete a required process.

Add-Password-Object-to-Safe

Example: Disconnect from Vault

The module provides the the required parameter values to the PACLI executable.

Disconnect-from-Vault

PACLI Pipeline Examples

Output can be piped between PoShPACLI functions:

Pipeline Example

Pipeline-Example-1

PACLI to PoShPACLI Function Relationship

The table shows how the the PoShPACLI module functions relate to their native PACLI counterparts:

PACLI CommandPoshPACLI Function
INITStart-PVPacli
TERMStop-PVPacli
DEFINEFROMFILEImport-PVVaultDefinition
DEFINENew-PVVaultDefinition
CREATELOGONFILENew-PVLogonFile
LOGONConnect-PVVault
LOGOFFDisconnect-PVVault
CTLGETFILENAMEGet-PVCTL
CTLADDCERTAdd-PVCTLCertificate
CTLLISTGet-PVCTLCertificate
CTLREMOVECERTRemove-PVCTLCertificate
STOREFILEAdd-PVFile
FINDFILESFind-PVFile
RETRIEVEFILEGet-PVFile
LOCKFILELock-PVFile
MOVEFILEMove-PVFile
DELETEFILERemove-PVFile
RESETFILEReset-PVFile
UNDELETEFILERestore-PVFile
UNLOCKFILEUnlock-PVFile
INSPECTFILEGet-PVFileActivity
ADDFILECATEGORYAdd-PVFileCategory
LISTFILECATEGORIESGet-PVFileCategory
DELETEFILECATEGORYRemove-PVFileCategory
UPDATEFILECATEGORYSet-PVFileCategory
FILESLISTGet-PVFileList
FILEVERSIONSLISTGet-PVFileVersionList
FOLDERSLISTGet-PVFolder
MOVEFOLDERMove-PVFolder
ADDFOLDERNew-PVFolder
DELETEFOLDERRemove-PVFolder
UNDELETEFOLDERRestore-PVFolder
GROUPDETAILSGet-PVGroup
ADDGROUPNew-PVGroup
DELETEGROUPRemove-PVGroup
UPDATEGROUPSet-PVGroup
ADDGROUPMEMBERAdd-PVGroupMember
GROUPMEMBERSGet-PVGroupMember
DELETEGROUPMEMBERRemove-PVGroupMember
LDAPBRANCHESLISTGet-PVLDAPBranch
LDAPBRANCHADDNew-PVLDAPBranch
LDAPBRANCHDELETERemove-PVLDAPBranch
LDAPBRANCHUPDATESet-PVLDAPBranch
LOCATIONSLISTGet-PVLocation
ADDLOCATIONNew-PVLocation
DELETELOCATIONRemove-PVLocation
RENAMELOCATIONRename-PVLocation
UPDATELOCATIONSet-PVLocation
MAILUSERSend-PVMailMessage
NETWORKAREASLISTGet-PVNetworkArea
MOVENETWORKAREAMove-PVNetworkArea
ADDNETWORKAREANew-PVNetworkArea
DELETENETWORKAREARemove-PVNetworkArea
RENAMENETWORKAREARename-PVNetworkArea
ADDAREAADDRESSNew-PVNetworkAreaAddress
DELETEAREAADDRESSRemove-PVNetworkAreaAddress
VALIDATEOBJECTSet-PVObjectValidation
GENERATEPASSWORDNew-PVPassword
STOREPASSWORDOBJECTAdd-PVPasswordObject
RETRIEVEPASSWORDOBJECTGet-PVPasswordObject
DELETEPREFFEREDFOLDERRemove-PVPreferredFolder
ADDPREFERREDFOLDERAdd-PVPreferredFolder
REQUESTSLISTGet-PVRequest
DELETEREQUESTRemove-PVRequest
REQUESTCONFIRMATIONSTATUSGet-PVRequestStatus
CONFIRMREQUESTSet-PVRequestStatus
ADDRULEAdd-PVRule
RULESLISTGet-PVRule
DELETERULERemove-PVRule
CLOSESAFEClose-PVSafe
SAFEDETAILSGet-PVSafe
ADDSAFENew-PVSafe
OPENSAFEOpen-PVSafe
DELETESAFERemove-PVSafe
RENAMESAFERename-PVSafe
RESETSAFEReset-PVSafe
UPDATESAFESet-PVSafe
INSPECTSAFEGet-PVSafeActivity
SAFEEVENTSLISTGet-PVSafeEvent
ADDEVENTWrite-PVSafeEvent
LISTSAFEFILECATEGORIESGet-PVSafeFileCategory
ADDSAFEFILECATEGORYNew-PVSafeFileCategory
DELETESAFEFILECATEGORYRemove-PVSafeFileCategory
UPDATESAFEFILECATEGORYSet-PVSafeFileCategory
ADDSAFESHAREAdd-PVSafeGWAccount
DELETESAFESHARERemove-PVSafeGWAccount
CLEARSAFEHISTORYClear-PVSafeHistory
SAFESLISTGet-PVSafeList
SAFESLOGGet-PVSafeLog
ADDNOTESet-PVSafeNote
ADDOWNERAdd-PVSafeOwner
OWNERSLISTGet-PVSafeOwner
DELETEOWNERRemove-PVSafeOwner
UPDATEOWNERSet-PVSafeOwner
ADDTRUSTEDNETWORKAREAAdd-PVTrustedNetworkArea
DEACTIVATETRUSTEDNETWORKAREADisable-PVTrustedNetworkArea
ACTIVATETRUSTEDNETWORKAREAEnable-PVTrustedNetworkArea
TRUSTEDNETWORKAREALISTGet-PVTrustedNetworkArea
DELETETRUSTEDNETWORKAREARemove-PVTrustedNetworkArea
USERDETAILSGet-PVUser
LOCKLock-PVUser
ADDUSERNew-PVUser
DELETEUSERRemove-PVUser
RENAMEUSERRename-PVUser
UPDATEUSERSet-PVUser
UNLOCKUnlock-PVUser
INSPECTUSERGet-PVUserActivity
CLEARUSERHISTORYClear-PVUserHistory
USERSLISTGet-PVUserList
SETPASSWORDSet-PVUserPassword
GETUSERPHOTOGet-PVUserPhoto
PUTUSERPHOTOSet-PVUserPhoto
OWNERSAFESLISTGet-PVUserSafeList
ADDUPDATEEXTERNALUSERENTITYAdd-PVExternalUser

Getting Started

Prerequisites

  • Requires Powershell v5 (minimum)
  • The CyberArk PACLI executable must be present on the same computer as the module.
    • PACLI 7.2 was used for development, anything less is considered unsupported for use with this module.
  • A CyberArk user with which to authenticate, which has appropriate Vault/Safe permissions.

Installation Options

This repository contains a folder namedPoShPACLI.

The folder and it's contents needs to be present in one of your PowerShell Module Directories.

Use one of the following methods:

Option 1: Install from PowerShell Gallery

Download the module from thePowerShell Gallery.

  • PowerShell 5.0 or above required.

From a PowerShell prompt, run:

Install-Module-Name PoShPACLI-Scope CurrentUser

Option 2: Manual Install

Find your PowerShell Module Paths with the following command:

$env:PSModulePath.split(';')

Download a Release

OR

Download themaster branch

Extract the archive

Copy thePoShPACLI folder to your "Powershell Modules" directory of choice.

Verification

Validate Module Exists on your local machine:

Get-Module-ListAvailable PoShPACLI

Import the module:

Import-Module PoShPACLI

List Module Commands:

Get-Command-Module PoShPACLI

Get detailed information on specific commands:

Get-HelpOpen-PVSafe-Full

Changelog

All notable changes to this project will be documented in theChangelog

Author

License

This project is licensed under the MIT License - see theLICENSE.md file for details

Contributing

Any and all contributions to this project are appreciated.See theCONTRIBUTING.md for a few more details.

About

Powershell Module for CyberArk PACLI

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp