Automate Outlook Email Signature using PowerShell

This commit is contained in:
AdminDroid 2024-08-01 19:16:00 +05:30
parent 2c40e52cd4
commit 0c2d1ebfb7

View File

@ -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)
{