Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell: Interface to type password

$
0
0

Hello guys.

I'm trying to use powershell to show an InputBox to type a password as a Secure String.

If I use the Read-Host on Powershell ISE it works, like the print below:

But when I run the script, it appears on the command prompt.

I have tried the command "[Microsoft.VisualBasic.Interaction]::InputBox", but hen I can't set the password as a secure string.
I just want that the 'dots' appears instead of the typed password.

Thanks in advance!


Att, Paulo Rocha


Viewing all articles
Browse latest Browse all 15028

Trending Articles