fixxed problem with match @

This commit is contained in:
Hans-Joachim Kliemeck 2015-11-05 17:50:47 +01:00
parent f281eb2b30
commit 5753a05625

View file

@ -352,7 +352,7 @@ Function Nssm-Update-Credentials
} }
else { else {
$fullUser = $user $fullUser = $user
If (-not($user -contains "@") -and ($user.Split("\").count -eq 1)) { If (-Not($user.contains("@")) -And ($user.Split("\").count -eq 1)) {
$fullUser = ".\" + $user $fullUser = ".\" + $user
} }