techthoughts2
11/26/2016 - 8:50 PM

Convert a plain text string to a secure string

Convert a plain text string to a secure string

$password = Read-Host "Enter your password"
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force