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
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Set-CIPPDefaultAPEnrollment.ps1
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ function Set-CIPPDefaultAPEnrollment {
23
23
'displayName'='All users and all devices'
24
24
'description'='This is the default enrollment status screen configuration applied with the lowest priority to all users and all devices regardless of group membership.'
Write-StandardsAlert-message 'Autopilot Enrollment Status Page is not configured'-object @{} -tenant $Tenant-standardName 'AutopilotStatusPage'-standardId $Settings.standardId
102
-
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Autopilot Enrollment Status Page is not configured'-sev Info
103
-
} elseif ($SettingsMismatch) {
104
-
Write-StandardsAlert-message 'Autopilot Enrollment Status Page settings do not match expected configuration'-object $MismatchDetails-tenant $Tenant-standardName 'AutopilotStatusPage'-standardId $Settings.standardId
105
-
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Autopilot Enrollment Status Page settings do not match expected configuration'-sev Info
88
+
# Alert
89
+
if ($Settings.alert-eq$true) {
90
+
if ($StateIsCorrect-eq$true) {
91
+
Write-LogMessage-API 'Standards'-tenant $Tenant-message 'Autopilot Enrollment Status Page is configured correctly'-sev Info
106
92
} else {
107
-
Write-LogMessage-API 'Standards'-tenant $tenant-message 'Autopilot Enrollment Status Page is configured correctly'-sev Info
93
+
Write-StandardsAlert-message 'Autopilot Enrollment Status Page settings do not match expected configuration'-object $CurrentConfig-tenant $Tenant-standardName 'AutopilotStatusPage'-standardId $Settings.standardId
94
+
Write-LogMessage-API 'Standards'-tenant $Tenant-message 'Autopilot Enrollment Status Page settings do not match expected configuration'-sev Info
0 commit comments