1 Star 0 Fork 0

laoyang2020/PowerShell_Popup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
popup.ps1 515 Bytes
一键复制 编辑 原始数据 按行查看 历史
Peter Kim 提交于 2015-02-09 22:33 . Update Readme
function Auth_Popup
{
<#
.SYNOPSIS
Modified Nishang script which opens a user credential prompt.
.LINK
Original Script and credit
https://github.com/samratashok/nishang
#>
[CmdletBinding()]
Param ()
$credential = $host.ui.PromptForCredential("Credentials are required to perform this operation", "Please enter your username and password.", "", "")
$creds = $credential.GetNetworkCredential()
[String]$user = $creds.username
[String]$pass = $creds.password
write-Output $user
write-Output $pass
}
Auth_Popup
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laoyang2020/PowerShell_Popup.git
git@gitee.com:laoyang2020/PowerShell_Popup.git
laoyang2020
PowerShell_Popup
PowerShell_Popup
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385