Skip to content

Commit 249ce2f

Browse files
committed
fix tenantfilter
1 parent 4c38523 commit 249ce2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-CIPPStandardsRun.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ function Invoke-CIPPStandardsRun {
2323

2424
if ($Drift.IsPresent) {
2525
Write-Information 'Drift Standards Run'
26-
$AllTasks = Get-CIPPTenantAlignment | Where-Object -Property standardtype -EQ 'drift' | Select-Object -Property Tenant | Sort-Object -Unique -Property Tenant
26+
$AllTasks = Get-CIPPTenantAlignment | Where-Object -Property standardtype -EQ 'drift' | Select-Object -Property TenantFilter | Sort-Object -Unique -Property TenantFilter
2727

2828
#For each item in our object, run the queue.
2929
$Queue = New-CippQueueEntry -Name 'Drift Standards' -TotalTasks ($AllTasks | Measure-Object).Count
3030

3131
$Batch = foreach ($Task in $AllTasks) {
3232
[PSCustomObject]@{
3333
FunctionName = 'CIPPDriftManagement'
34-
Tenant = $Task.Tenant
34+
Tenant = $Task.TenantFilter
3535
}
3636
}
3737

0 commit comments

Comments
 (0)