diff --git a/windows/win_acl.ps1 b/windows/win_acl.ps1 index fb12ae6cee3..6e497c417be 100644 --- a/windows/win_acl.ps1 +++ b/windows/win_acl.ps1 @@ -42,7 +42,7 @@ Function UserSearch } } - Elseif ($AccountName -contains "@") + Elseif ($AccountName.contains("@")) { $IsDomainAccount = $true $IsUpn = $true