HowTo create a CredentialEntry via Powershell

HowTo create a CredentialEntry via Powershell

avatar

Hi everybody,

I have created a Group in my RDM. Now I would like to create a CredenitalEntry with Username and Password via Powershell. I can´t find any command how to accomplish this. Any ideas?

Kind regards
Matthias

All Comments (2)

avatar

Hi Matthias,

You could use something like the below code. You'll get prompted to add credentials before the creation.

$Credentials = Get-Credential
$Entry = New-RDMSession -Type Credential -Name ' '
$Entry.Credentials.UserName = $Credentials.GetNetworkCredential().UserName
Set-RDMSession $Entry
Update-RDMUI
Set-RDMSessionPassword -ID $Entry.ID -Password $Credentials.Password
Update-RDMUI


Please let me know if you have any questions.
Best regards,
Eric

Eric St-Martin

avatar

Hi Eric,

sorry for the late response...
Your solution works fine for me. Thx a lot!

Best regards,
Matthias