Get password from Securestring

To get the password of a securestring you need to do this:

$credential = Get-Credential
$insecurePlainPassword = $credential.GetNetworkCredential().password

Leave a Reply

Your email address will not be published. Required fields are marked *