Adding credentials through datasource with powershell automation

Adding credentials through datasource with powershell automation

avatar

Hi,

Internally we use a powershell script to automatically create AD accounts based on information provided and add the credential to our password management solution. We are switching to RDM for password management and need to replicate this.

When using RDM powershell to add credentials to the datasource we are running into a problem. How can we create a connection with the datasource to add a credential WITHOUT having a credential pop-up all the time?

Obviously the idea is automation and the script must run when an account is created without the need for someone to enter credentials to access the datasource everytime.

Could you provide some sample code perhaps?

Thanks!

All Comments (1)

avatar

Hello,

With the Set-RDMCurrentDataSource CmdLet, you can provide the username and the password as parameters.

Here is a sample code.

Set-RDMCurrentDataSource -id "8C28E871-6ACD-4C35-940E-839A4350ED67" -Username $user -Password $password
The password must be a secure string.

Please consult this online help page for more information about Set-RDMCurrentDataSource.

Best regards,

Érica Poirier