From 1eb86a9a6500e3209baccdb787756cfe072385c7 Mon Sep 17 00:00:00 2001 From: BNWEIN Date: Sat, 14 Oct 2023 14:27:22 +0100 Subject: [PATCH] Update run.ps1 Changed to write-log to $JSONRecipients --- Scheduler_CIPPNotifications/run.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scheduler_CIPPNotifications/run.ps1 b/Scheduler_CIPPNotifications/run.ps1 index e2daabff52c0..d8826cfa21d5 100644 --- a/Scheduler_CIPPNotifications/run.ps1 +++ b/Scheduler_CIPPNotifications/run.ps1 @@ -49,7 +49,7 @@ try { } "@ New-GraphPostRequest -uri 'https://graph.microsoft.com/v1.0/me/sendMail' -tenantid $env:TenantID -type POST -body ($JSONBody) - Write-LogMessage -API 'Alerts' -message "Sent alerts to: $($Config.email)" -tenant $Tenant -sev info + Write-LogMessage -API 'Alerts' -message "Sent alerts to: $($JSONRecipients)" -tenant $Tenant -sev info } } }