Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

read-host question

$
0
0

I am using the read-host command to have a user input his password to automatically map several network drives using the following command as an example

$password = Read-Host "Please enter your NT password"

is there a way so when the dialog box opens for him to type in his password instead of showing his password in plain text it hides it with stars or bullets or something?


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>