diff --git a/windows/win_owner.ps1 b/windows/win_owner.ps1 index 0623f2b17a1..9bd3c335e9c 100644 --- a/windows/win_owner.ps1 +++ b/windows/win_owner.ps1 @@ -37,7 +37,7 @@ Function UserSearch } } - Elseif ($AccountName -contains "@") + Elseif ($AccountName.contains("@")) { $IsDomainAccount = $true $IsUpn = $true