0

I need your help in displaying login credential without using popup window in powershell. Mainly i need to type password in the command window and password typing should not be displayed. Please help me in this regard

Thanks

1 Answers1

0
$password = read-host -assecurestring
$credential= new-object -type Management.Automation.PSCredential -arg $user, $password
 $credential

Other option here

walid toumi
  • 2,172
  • 1
  • 13
  • 10