How to create secure string and how to get back plaintext from secure string

$SecString = Read-Host „Put Password String“ -AsSecureString
$GetBackPlainText = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecString)
$PlainText = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($GetBackPlainText)

images

marwin se představuje:

IT Engineer Design, Implementation and Administration of Microsoft products. Active Directory and MS Exchange systems, Hyper-V, SCOM
Příspěvek byl publikován v rubrice Powershell. Můžete si uložit jeho odkaz mezi své oblíbené záložky.