要提示输入凭据,几乎应该始终使用Get-Credentialcmdlet:
$credential = Get-Credential
预先填写的用户名:
$credential = Get-Credential -UserName 'myUser'
添加自定义提示消息:
$credential = Get-Credential -Message 'Please enter your company email address and password.'
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分