Converts a secure string into a plain text string.
Convert-SecureStringToString [-SecureString] <SecureString> [<CommonParameters>]
Sometimes you just need to convert a secure string into a plain text string. This function does it for you. Yay! Once you do, however, the cat is out of the bag and your password will be all over memory and, perhaps, the file system.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SecureString | SecureString | The secure string to convert. |
true | false |
Convert-SecureStringToString -SecureString $mySuperSecretPasswordIAmAboutToExposeToEveryone
Returns the plain text/decrypted value of the secure string.