I created a PowerShell script to update the SolarWinds credential after pulling the new password from our password vault tool.
Following the variable through the script the password looks fine, but once it is applied to SolarWinds the application that uses it starts to fail.
It seems to be how the password is getting passed in the Invoke-SwisVerb call. I am defining the properties as hashtable and then calling the Orion.Credential UpdateCredentials verb to update it.
Thoughts on why this is not updating the password correctly?
Here is my code snippet:
$properties = @{
"Name" = $newName
"Description" = $newDescription
"Username" = $newUsername
"Password" = $newPassword
}
Invoke-SwisVerb $swis Orion.Credential UpdateCredentials @($credentialId, $properties)