Skip to content

Commit 8a9a6fc

Browse files
committed
fix get-standards params
1 parent 495927c commit 8a9a6fc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ function Invoke-CIPPStandardsRun {
4747
return
4848
} else {
4949
Write-Information 'Classic Standards Run'
50-
$AllTasks = Get-CIPPStandards
50+
51+
$GetStandardParams = @{
52+
TenantFilter = $TenantFilter
53+
runManually = $runManually
54+
}
55+
56+
if ($TemplateID) {
57+
$GetStandardParams['TemplateId'] = $TemplateID
58+
}
59+
60+
$AllTasks = Get-CIPPStandards @GetStandardParams
5161

5262
if ($Force.IsPresent) {
5363
Write-Information 'Clearing Rerun Cache'

0 commit comments

Comments
 (0)