Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Powershell Module CredentialLocker

Module to manage the Credential Locker, also known as Password Vault, which provides a way for you to store user credentials (username, password) in a secure fashion for web pages or your app. With this module you can manage stored credentials of Internet Explorer and Edge too.

Since Technet Gallery is closed, now here.

See Script Center version: Powershell Module CredentialLocker.

Description

Module to manage the Credential Locker, also known as Password Vault, which provides a way for you to store user credentials (username, password) in a secure fashion for web pages or your app. 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.

Usage

Import the module to your powershell session (assume the files are in the current directory):

Import-Module .\CredentialLocker.psd1

Install the module from an administrative powershell session (assume the files are in the current directory):

.\InstallModule.ps1

or use the version on Powershell Gallery: see here or install with

Install-Module CredentialLocker

Commands

Get-VaultCredential [-Resource <Resource>] [-UserName <UserName>]

Retrieves credentials stored in the password vault searched by resource and/or user name.

Show-VaultCredentials

List all credentials stored in the password vault.

Add-VaultCredential -Resource <Resource> -UserName <UserName> -Password <Password> [-IE] [-Edge] [-Hide]
Add-VaultCredential -Credential <VaultCredential> [-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.

Remove-VaultCredential -Resource <Resource> -UserName <UserName>
Remove-VaultCredential -Credential <VaultCredential>

Removes credentials from the password vault.

ConvertTo-VaultCredential -Credential <PSCredential>

Converts Powershell credential to password vault credential.

ConvertFrom-VaultCredential -Credential <VaultCredential>

Converts password vault credential to Powershell credential.

Examples

Get-VaultCredential "https://github.com/"

(Get-VaultCredential -resource "https://github.com/").Password

Add-VaultCredential "https://login.live.com/" "test@test.com" "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