You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#writing to each item that the license is not present.
37
+
$settings.TemplateList|ForEach-Object {
38
+
Set-CIPPStandardsCompareField-FieldName "standards.ConditionalAccessTemplate.$($_.value)"-FieldValue 'This tenant does not have the required license for this standard.'-Tenant $Tenant
39
+
}
37
40
Write-Host"We're exiting as the correct license is not present for this standard."
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneTemplate.ps1
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ function Invoke-CIPPStandardIntuneTemplate {
35
35
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'intuneTemplate'
36
36
37
37
if ($TestResult-eq$false) {
38
+
#writing to each item that the license is not present.
39
+
$settings.TemplateList|ForEach-Object {
40
+
Set-CIPPStandardsCompareField-FieldName "standards.IntuneTemplate.$($_.value)"-FieldValue 'This tenant does not have the required license for this standard.'-Tenant $Tenant
41
+
}
38
42
Write-Host"We're exiting as the correct license is not present for this standard."
0 commit comments