Comment on page
Windows
$pw = Get-Content .\<file> | ConvertTo-SecureString
$bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pw)
$UnsecurePassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr)
or:
powershell (Import-Clixml cred.xml).GetNetworkCredential().Password
gpp-decrypt <crypted pass>
Last modified 9mo ago