cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.
https://www.cyberark.com/best
Apache License 2.0
203 stars 176 forks source link

Deleting Safes Does Not Accept "-FilePath" Correctly #317

Closed wissam-jameel closed 1 year ago

wissam-jameel commented 1 year ago

Running the command below with "-SafeName" switch works every time: .\Safe-Management.ps1 -PVWAURL https://mypvwa -AuthType ldap -Delete -SafeName "Test-Safe"

Running the command below with "-FilePath" switch will prompt for SafeName parameter. Adding the file path again in the prompt will make it work: .\Safe-Management.ps1 -PVWAURL https://mypvwa -AuthType ldap -Delete -FilePath .\safes_delete.csv

Trying the command below with "-SafeName" switch and the file path will not work: .\Safe-Management.ps1 -PVWAURL https://mypvwa -AuthType ldap -Delete -SafeName .\safes_delete.csv

CyberArk