Update CLI Credentials using PS. Starter script example here.

I have a starter PS script that will change CLI device credential information. 


Import-Module SwisPowerShell

$hostname = "localhost" # when running the PS script on the main application server
$username = "Orion Account" # use you Orion login account
$plainTextPassword = "BlaBlaBla" # use your Orion login password
$password = $plainTextPassword | ConvertTo-SecureString -AsPlainText -Force

$cred = New-Object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
$swis = Connect-Swis -host $hostname -cred $cred

# Update CLI Credential
$credentialId = 106   # This will be different for each CLI based entry within the Orion.Credential Table 
$settings = @{
Description = 'test password change' # In this example the credential description was also changed. Can add-remove any column entry info.
Password = 'test6'  # Cange Password 
};

Invoke-SwisVerb $swis "Orion.Credential" "UpdateCredentials" @($credentialId, $settings)