pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
295 stars 91 forks source link

Generate complex password using powershell #430

Closed Kulan117 closed 1 year ago

Kulan117 commented 1 year ago

Issue: Using the GUI we have the option to change and generate a complex password using the generate tool and set the password only in the Vault.

Do we have the option in psPAS to generate a random complex password without inputting the password value but chosing the password parameters like uppercase, lowercase, etc?

Privileged Cloud v12.6

PowerShell Version: psPAS Version: Version '5.2.59' CyberArk Version: Privileged Cloud v12.6

pspete commented 1 year ago

https://pspas.pspete.dev/commands/New-PASAccountPassword

Kulan117 commented 1 year ago

@pspete Does it set the password on the account or just generates the password? Because for me it generates the password but doesn't set the new password on the account. Should I combine this with any other command to set password?

pspete commented 1 year ago

To change the password only in the vault, see Example 6 of Invoke-PASCPMOperation .

There is quite comprehensive documentation for common module operations on the psPAS site, most answers should be readily available there: https://pspas.pspete.dev/docs/cpm-operations/

Kulan117 commented 1 year ago

Great Thank you! Now my script working fine 👍