2014-10-02 47 views
0

我需要你的帮助来显示登录凭证,而不使用powershell中的弹出窗口。主要是我需要在命令窗口中输入密码,并且不应显示密码输入。请帮我在这方面没有弹出窗口的登录凭证

感谢

回答

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

其他选项here