From 07bf2c14ceac604c7f58af165f8b6138bdb47bca Mon Sep 17 00:00:00 2001 From: ArescomML Date: Fri, 3 Jan 2025 14:58:24 +0100 Subject: [PATCH] Removed Continue in loop --- AD/CreateN1-N2Users/Create-ADtechs.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/AD/CreateN1-N2Users/Create-ADtechs.ps1 b/AD/CreateN1-N2Users/Create-ADtechs.ps1 index 5f10e97..e417850 100644 --- a/AD/CreateN1-N2Users/Create-ADtechs.ps1 +++ b/AD/CreateN1-N2Users/Create-ADtechs.ps1 @@ -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