Skip to content

Instantly share code, notes, and snippets.

@atallo
atallo / rdcmanprofilepasswd.ps1
Last active May 13, 2024 09:03 — forked from josy1024/rdcmanprofilepasswd.ps1
Decrypting Remote Desktop Connection Manager Passwords from settings file with PowerShell (passwords with certificate)
# author: josef lahmer
# thanks to https://smsagent.blog/2017/01/26/decrypting-remote-desktop-connection-manager-passwords-with-powershell/
# Path to RDCMan.exe
#$RDCMan = "C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe"
# Path to RDG file
$RDGFile = "C:\TEMP\file.rdg"
#$RDGFile = "$env:LOCALAPPDATA\Microsoft\Remote Desktop Connection Manager\RDCMan.settings"