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
# There is no facility to replace passwords in RDCMan once they are stored. The only way is to create a new custom credential. | |
# If you open your *.rdg file in a text editor, locate the stored <password>, you can then decrypt it using this script. | |
# This script can also encrypt a plain text password in rdg format which can be used to overwrite an existing one in the xml. | |
Add-Type -AssemblyName System.Security; | |
Function EncryptPassword { | |
[CmdletBinding()] | |
param([String]$PlainText = $null) | |
# convert to RDCMan format: (null terminated chars) |