From f308f5e804c6dc1642e05b3678ab54f8a9ff6efd Mon Sep 17 00:00:00 2001 From: kawa Date: Fri, 3 Jan 2025 14:51:17 +0100 Subject: [PATCH] Prompt modification for when a user already exists. --- AD/CreateN1-N2Users/Create-ADtechs.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AD/CreateN1-N2Users/Create-ADtechs.ps1 b/AD/CreateN1-N2Users/Create-ADtechs.ps1 index 84f6dcc..5f10e97 100644 --- a/AD/CreateN1-N2Users/Create-ADtechs.ps1 +++ b/AD/CreateN1-N2Users/Create-ADtechs.ps1 @@ -75,7 +75,7 @@ ForEach($user in $userList){ # On vérifie si l'utilisateur existe déjà, passe au suivant si oui $existingUser = Get-ADUser -Filter { Name -eq $user } -ErrorAction SilentlyContinue if ($existingUser) { - Write-Color -Text "L'utilisateur ", $user, " existe déjà. Aucun changement effectué." -Color White, Yellow + Write-Color -Text "L'utilisateur ", $user, " existe déjà. Application des permissions." -Color White, Yellow continue } $userPass = (GenPass)