mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
Automate Outlook Email Signature using PowerShell
This commit is contained in:
parent
2c40e52cd4
commit
0c2d1ebfb7
@ -228,7 +228,7 @@ function Get-UsersForAssignSignature
|
|||||||
{
|
{
|
||||||
$Headers = (Import-Csv -Path $Path | Get-Member -MemberType NoteProperty).Name
|
$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
|
$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)
|
if (-not $TaskScheduler)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user