hoping someone has a brilliant solution for me, spent a few days beating on this.
I’m in a fully monitored environment, so all posh logging is enabled.
I retrieve a password from our cyberark vault via API. The results is always plaintext/json
I need to build a pscredential object from the password that is retrieved to connect to O365.
Pscredential only allows securestrings for the password value.
If I execute $pw|convertto-securestring -asplaintext -force
the contents of $pw is stored in the eventviewer as pipeline details, thus password in plaintext.
kind of at the end of my rope on this one, hoping someone has some solution that i haven’t run across.