CredentialLocker is a powershell module that provides commandlets to manage credentials in the password vault. It is a secure password safe for your application (as secure as your login environment). Usernames and passwords stored using the Credential Locker are encrypted and saved locally and can only be accessed by the user who saved them.
With this module you can manage stored credentials of Internet Explorer and Edge too.
Requires Windows 8 / Server 2012 or up.
- Get-VaultCredential and Show-VaultCredentials to display credentials
- Add-VaultCredential and Remove-VaultCredential to manage credentials
- ConvertTo-VaultCredential and ConvertFrom-VaultCredential to convert between PSCredential and CredentialLocker credential
By Markus Scholtes, 2019
PS C:\> Install-Module CredentialLocker
or download from here: https://www.powershellgallery.com/packages/CredentialLocker/.
Also look for the script based version here Powershell Module CredentialLocker.
Retrieves credentials stored in the password vault searched by resource and/or user name.
List all credentials stored in the password vault.
Add-VaultCredential -Resource <Resource> -UserName <UserName> -Password <Password> [-IE] [-Edge] [-Hide]
Adds a credential to the password vault. Parameter -IE or -Edge generates a credential for a web page. Parameter -Hide hides the credential in control panel.
Removes credentials from the password vault.
Converts Powershell credential to password vault credential.
Converts password vault credential to Powershell credential.
Get-VaultCredential "https://github.com/"
(Get-VaultCredential -resource "https://github.com/").Password
Add-VaultCredential "https://login.live.com/" "[email protected]" "P@ssw0rd" -Edge -Hide
Get-Credential | ConvertTo-VaultCredential -Resource "MyApp" | Add-VaultCredential -Application "MyApp"
Remove-VaultCredential -Resource "https://github.com/"
Get-VaultCredential -Resource "https://github.com/" -UserName "logonname" | Remove-VaultCredential
First stable release (hope so)