Convert-SecureStringToString

Converts a secure string into a plain text string.

Syntax

Convert-SecureStringToString [-SecureString] <SecureString> [<CommonParameters>]

Description

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.

Parameters

Name Type Description Required? Pipeline Input Default Value
SecureString SecureString

The secure string to convert.

true false

Return Values

System.String.

EXAMPLE 1

Convert-SecureStringToString -SecureString $mySuperSecretPasswordIAmAboutToExposeToEveryone

Returns the plain text/decrypted value of the secure string.