Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Returns all credentials found for logged on user of windows credential manager
<#
.Synopsis
Read Password Vault
.DESCRIPTION
Get Windows Password Vault for Logged on user
.EXAMPLE
Get-WinPassword
#>
#function Get-PasswordVault {
[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime]
(new-object Windows.Security.Credentials.PasswordVault).RetrieveAll()|%{$_.RetrievePassword();$_|select Resource,Username,password}
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment