Category: SecureString

Read SecureString from user in Powershell

$aa=Read-Host “enter:” -AsSecureString

Example from powershell:-

PS C:\Users\username> $aa=Read-Host “enter:” -AsSecureString
enter:: ***

Advertisements