ConvertTo-SecureString - Powershell 1.0 CmdLet
ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »
ConvertTo-SecureString
Description Convert an encrypted standard string into a secure string Usage Options Example(s) Create a secure string from plain text: PS C:\>$my_secure_password_string = convertto-securestring "P@ssW0rD!" -asplaintext -force Creates a secure string using the Read-Host cmdlet: PS C:\>$my_secure_password_string = read-host -assecurestring Save an encrypted string to disc: PS C:\>$my_encrypted_string = convertfrom-securestring $my_secure_password_string -key (1..16) PS C:\>$my_encrypted_string > password.txt Read an encrypted string from disc and convert back to a secure string: PS C:\>$my_secure_password_string = convertto-securestring (get-content password.txt) -key (1..16)