Skip to content

VAULTCMD Windows Command Guide

The Windows vaultcmd command allows users to access and manage credentials in the Windows Credential Manager from the command line. It provides various options to add, delete, and list credentials, making it easier to securely store and retrieve sensitive information. Use this command to streamline the management of credentials in Windows environments efficiently.

Terminal window
vaultcmd [option] [parameter]
OptionDescription
-aPerform action A
-bPerform action B
-cPerform action C
ParameterDescription
file.txtSpecify a file to operate on
folderSpecify a folder to operate on
user123Specify a user to perform action for
Terminal window
vaultcmd /add "MyCredential" /user:admin /password:Password123 /target:myserver

Add a new Windows credential named “MyCredential” with username “admin” and password “Password123” for the target “myserver”.

Terminal window
vaultcmd /list

View a list of all saved credentials in the Windows Vault.

Terminal window
vaultcmd /delete "MyCredential"

Delete the Windows credential named “MyCredential” from the vault.

Terminal window
vaultcmd /list > credentials.txt

Export the list of saved credentials to a text file named “credentials.txt”.

Show detailed information about a specific credential

Section titled “Show detailed information about a specific credential”
Terminal window
vaultcmd /show "MyCredential"

Display detailed information about the Windows credential named “MyCredential”.

Terminal window
vaultcmd /clear

Remove all saved credentials from the Windows Vault.

Terminal window
vaultcmd /backup C:\VaultBackup

Create a backup of the Windows Vault and store it in the directory “C:\VaultBackup”.

To use the vaultcmd command in Windows, execute the following command:

Terminal window
vaultcmd --list

How can I add a credential to Windows Credential Manager using vaultcmd?

Section titled “How can I add a credential to Windows Credential Manager using vaultcmd?”

To add a credential using vaultcmd, use the following command:

Terminal window
vaultcmd add -user MyUser -password MyPassword -target NewCredential

How can I remove a credential from Windows Credential Manager with vaultcmd?

Section titled “How can I remove a credential from Windows Credential Manager with vaultcmd?”

To remove a credential using vaultcmd, use the following command:

Terminal window
vaultcmd delete -target CredentialToDelete

How do I update a credential in Windows Credential Manager using vaultcmd?

Section titled “How do I update a credential in Windows Credential Manager using vaultcmd?”

To update a credential using vaultcmd, use the following command:

Terminal window
vaultcmd update -user NewUser -password NewPassword -target CredentialToUpdate

How can I view all credentials stored in Windows Credential Manager with vaultcmd?

Section titled “How can I view all credentials stored in Windows Credential Manager with vaultcmd?”

To view all credentials using vaultcmd, execute the following command:

Terminal window
vaultcmd --list

How do I backup Windows Credential Manager credentials with vaultcmd?

Section titled “How do I backup Windows Credential Manager credentials with vaultcmd?”

To backup credentials using vaultcmd, use the following command:

Terminal window
vaultcmd export -file C:\Path\To\Backup\File
  • Permits users to back up or restore credentials.
  • Provides the ability to list the credentials stored in the Credential Manager.
  • Allows users to add, display, and delete stored credentials.