Removed Continue in loop
This commit is contained in:
parent
f308f5e804
commit
07bf2c14ce
@ -76,7 +76,6 @@ ForEach($user in $userList){
|
|||||||
$existingUser = Get-ADUser -Filter { Name -eq $user } -ErrorAction SilentlyContinue
|
$existingUser = Get-ADUser -Filter { Name -eq $user } -ErrorAction SilentlyContinue
|
||||||
if ($existingUser) {
|
if ($existingUser) {
|
||||||
Write-Color -Text "L'utilisateur ", $user, " existe déjà. Application des permissions." -Color White, Yellow
|
Write-Color -Text "L'utilisateur ", $user, " existe déjà. Application des permissions." -Color White, Yellow
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
$userPass = (GenPass)
|
$userPass = (GenPass)
|
||||||
$userEncPass = ConvertTo-SecureString -String $userPass -AsPlainText -Force
|
$userEncPass = ConvertTo-SecureString -String $userPass -AsPlainText -Force
|
||||||
|
Loading…
Reference in New Issue
Block a user