Skip to content

Instantly share code, notes, and snippets.

@clemmesserli
Last active June 18, 2020 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clemmesserli/5f3a86b17e3c622cbeafc85b6d491bf2 to your computer and use it in GitHub Desktop.
Save clemmesserli/5f3a86b17e3c622cbeafc85b6d491bf2 to your computer and use it in GitHub Desktop.
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