From adda1933baf8e00b4eb58905536cbeadb995290c Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Fri, 1 Aug 2025 18:44:00 +1000 Subject: [PATCH] chore: add setup users --- SetupUsers.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SetupUsers.ps1 b/SetupUsers.ps1 index 29ddd6f..4af84c4 100644 --- a/SetupUsers.ps1 +++ b/SetupUsers.ps1 @@ -13,13 +13,13 @@ ForEach ($User in $Users) { $SamAccountName = "$FirstName$SurnameInitial" $UserPrincipalName = "$SamAccountName@$Domain" - Write-Host "`nProcessing user: $DisplayName ($UserPrincipalName)" -ForegroundColor Yellow + Write-Host "🖨️ Processing user: $DisplayName ($UserPrincipalName)" -ForegroundColor Yellow # Check if user already exists $ExistingUser = Get-ADUser -Filter { SamAccountName -eq $SamAccountName } -ErrorAction SilentlyContinue if ($ExistingUser) { - Write-Host "User '$SamAccountName' already exists. Skipping creation." -ForegroundColor DarkGray + Write-Host "❗ User '$SamAccountName' already exists. Skipping creation." -ForegroundColor Red } else { Write-Host "🛠️ Creating user '$SamAccountName'..." -ForegroundColor Cyan $UserPassword = ConvertTo-SecureString "P@ssw0rd123!" -AsPlainText -Force