Skip to content

Instantly share code, notes, and snippets.

@elfmimi
elfmimi / CredReadTest.ps1
Last active May 3, 2023 15:33
POC: PowerShell script to retrieve your access token from Windows Credential Manager
# Howto execute this script:
# Unblock-File .\CredReadTest.ps1
# powershell -ExecutionPolicy RemoteSigned .\CredReadTest.ps1
#
# The following command displays a list of credentials:
# cmdkey /list
Write-Output "CredRead Test Program"
$type_def = @'