diff --git a/Modules/CippExtensions/Public/Extension Functions/Register-CippExtensionScheduledTasks.ps1 b/Modules/CippExtensions/Public/Extension Functions/Register-CippExtensionScheduledTasks.ps1 index eb56d03de55c..d8b2d6cfd01f 100644 --- a/Modules/CippExtensions/Public/Extension Functions/Register-CippExtensionScheduledTasks.ps1 +++ b/Modules/CippExtensions/Public/Extension Functions/Register-CippExtensionScheduledTasks.ps1 @@ -91,7 +91,7 @@ function Register-CIPPExtensionScheduledTasks { TenantFilter = $Tenant.defaultDomainName } if ($ExistingPushTask) { - $Task.RowKey = $ExistingTask.RowKey + $task | Add-Member -NotePropertyName 'RowKey' -NotePropertyValue $ExistingPushTask.RowKey -Force } $null = Add-CIPPScheduledTask -Task $Task -hidden $true -SyncType $Extension Write-Information "Creating $Extension task for tenant $($Tenant.defaultDomainName)"