From 0c2d1ebfb7163a7e02ee55abb6cd29b8326b57d2 Mon Sep 17 00:00:00 2001 From: AdminDroid <49208841+admindroid-community@users.noreply.github.com> Date: Thu, 1 Aug 2024 19:16:00 +0530 Subject: [PATCH] Automate Outlook Email Signature using PowerShell --- .../AutomateSignatureInOutlook.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Automate Outlook Signature - Deploy Once and Forget It/AutomateSignatureInOutlook.ps1 b/Automate Outlook Signature - Deploy Once and Forget It/AutomateSignatureInOutlook.ps1 index 0373cb4..3113857 100644 --- a/Automate Outlook Signature - Deploy Once and Forget It/AutomateSignatureInOutlook.ps1 +++ b/Automate Outlook Signature - Deploy Once and Forget It/AutomateSignatureInOutlook.ps1 @@ -228,7 +228,7 @@ function Get-UsersForAssignSignature { $Headers = (Import-Csv -Path $Path | Get-Member -MemberType NoteProperty).Name $UsersCollection = Import-Csv -Path $Path | Select-Object -Property UserPrincipalName | Sort-Object -Property UserPrincipalName -Unique -ErrorAction Stop - if ('UserPrincipalName' -in $Headers -and $UsersCollection.count -gt 1) + if ('UserPrincipalName' -in $Headers -and $UsersCollection.count -ge 1) { if (-not $TaskScheduler) {