Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » ConvertTo-SecureString

ConvertTo-SecureString - Powershell 3.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

Short description
Converts encrypted standard strings to secure strings. It can also convert plain text to secure strings. It is used with ConvertFrom-SecureString and Read-Host.

Syntax


Description
The ConvertTo-SecureString cmdlet converts encrypted standard strings into secure strings. It can also convert plain te
xt to secure strings. It is used with ConvertFrom-SecureString and Read-Host. The secure string created by the cmdlet c
an be used with cmdlets or functions that require a parameter of type SecureString. The secure string can be converted 
back to an encrypted, standard string using the ConvertFrom-SecureString cmdlet. This enables it to be stored in a file
 for later use.


If the standard string being converted was encrypted with ConvertFrom-SecureString using a specified key, that same key
 must be provided as the value of the Key or SecureKey parameter of the ConvertTo-SecureString cmdlet.