Removed Continue in loop

This commit is contained in:
ArescomML 2025-01-03 14:58:24 +01:00
parent f308f5e804
commit 07bf2c14ce

View File

@ -76,7 +76,6 @@ ForEach($user in $userList){
$existingUser = Get-ADUser -Filter { Name -eq $user } -ErrorAction SilentlyContinue
if ($existingUser) {
Write-Color -Text "L'utilisateur ", $user, " existe déjà. Application des permissions." -Color White, Yellow
continue
}
$userPass = (GenPass)
$userEncPass = ConvertTo-SecureString -String $userPass -AsPlainText -Force