How to Update a JAMS V7 Credential Password in PowerShell

Follow

How do I update a JAMS Version 7.X Credential Password in PowerShell?

Utilizing the following PowerShell cmdlet, the password can be updated as well as saved to the JAMS Database:

$cd = get-item jams::localhost\Credentials\ChangeTest
$cd.Password = "NewSecretPassword"
$cd.Update()

 Enter the new password in the "NewSecretPassword" field.

Have more questions? Submit a request

Comments

  • Avatar
    MaryAnn Salas

    Is there an equivalent script to "Create" credential to begin with?
    Thanks much!

  • Avatar
    Gennaro Piccolo

    Hello MaryAnn, you can create a credential using the following:

    Import-Module JAMS

    $cd = New-item jams::localhost\Credentials\NewCredential
    $cd.Password = "NewSecretPassword"
    $cd.Update()