fixxed problem with match @

This commit is contained in:
Hans-Joachim Kliemeck 2015-11-05 17:46:25 +01:00
parent 45249fb042
commit 10ce1f92aa

View file

@ -37,7 +37,7 @@ Function UserSearch
} }
} }
Elseif ($AccountName -contains "@") Elseif ($AccountName.contains("@"))
{ {
$IsDomainAccount = $true $IsDomainAccount = $true
$IsUpn = $true $IsUpn = $true