Creating New Credential in Variables and Secrets Overwrites Existing Credential
PSU Version 2026.3.4 - I have an existing credential in "Variables and Secrets". When I create a new credential, the username and password for the existing credential gets overwritten by the username and password entered for the new credential.
This only occurs when creating a new secret.
After that, when I click on the name of the existing credential, the new credential is displayed. When I click on the "Set Secret Value" icon, the correct credential is displayed.
Hello bcehlenfield,
Thank you for reporting this, and for the clear description.
We reproduced the behavior in our lab on PowerShell Universal 2026.3.4 and on the latest version, 2026.3.5.
Creating a new credential does not change any existing credential in the vault.
The Edit Secret Properties window, which opens when you click a credential's name, never loads the stored user name and password.
Those fields only show what was typed in that window earlier, or what the browser filled in on its own.
When you click Save, whatever is in those fields is written to the credential you have open.
So the existing credential is only overwritten if Save is clicked while the window shows the other values.
We believe the values you saw came from your browser's password manager.
When you created the new credential, the browser most likely saved that user name and password.
It then filled them into the next window that has the same fields.
We also found a related issue in the same window.
If you type a user name and password for one credential and click Cancel, the next credential you open shows those same values.
We have reported both issues to our development team (ticket SFC-1246, for internal reference only).
Until a fix is available, here is a safe way to work:
Reload the page before you open another credential.
Before you click Save, check that the User Name and Password fields are empty, or hold values you typed yourself.
If you only need to change properties such as the description, leave User Name and Password empty, and the stored credential stays as it is.
Decline the browser's offer to save these passwords, and remove any saved entries for your PowerShell Universal address.
To confirm that your existing credential is intact, you can run this short script from Automation > Scripts, with your own credential names:
$Secret:ExistingCredential.UserName
$Secret:ExistingCredential.GetNetworkCredential().Password -eq $Secret:NewCredential.GetNetworkCredential().Password
The first line should return the original user name, and the second line should return False.
If the stored value is wrong, click the pencil icon on that credential, type the correct user name and password, and save.
Could you let us know which browser you use, and whether you clicked Save in the window that showed the wrong values?
Upgrading to 2026.3.5 does not change this behavior yet.
You can find more on secret variables and the $Secret: scope here: https://docs.devolutions.net/powershell-universal/platform/variables
We will update you as soon as we have news from the development team.
Best regards,
Patrick Ouimet