SHARE
TWEET

Retrieve masked password in powershell

jamiet Apr 24th, 2014 614 Never
  1. $response = Read-host "What's your password?" -AsSecureString
  2. $password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($response))
RAW Paste Data
Top