Last active
June 18, 2020 05:37
-
-
Save clemmesserli/5f3a86b17e3c622cbeafc85b6d491bf2 to your computer and use it in GitHub Desktop.
Returns all credentials found for logged on user of windows credential manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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