Skip to content

Instantly share code, notes, and snippets.

@SevenLayerJedi
Created January 8, 2019 00:19
Show Gist options
  • Save SevenLayerJedi/fe4b3a8b5ad2b7f8f80160fe83d9e213 to your computer and use it in GitHub Desktop.
Save SevenLayerJedi/fe4b3a8b5ad2b7f8f80160fe83d9e213 to your computer and use it in GitHub Desktop.
# Display all the passwords stored in the Windows Credential Manager
Function Get-WindowsCredentialManagerPasswords{
[void][Windows.Security.Credentials.PasswordVault,Windows.Security.Credentials,ContentType=WindowsRuntime]
$vault = New-Object Windows.Security.Credentials.PasswordVault
$vault.RetrieveAll() | % { $_.RetrievePassword();$_ }
}
Get-WindowsCredentialManagerPasswords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment