mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
Configure Email Signature in Outlook using PowerShell
This commit is contained in:
parent
0c2d1ebfb7
commit
805f83c6c3
@ -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)
|
||||
{
|
||||
$Output = $Output + "to $($UsersCollection.count) users in the CSV file..."
|
||||
Write-Host $Output
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user