We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f85fa25 + 61b7f5c commit b835434Copy full SHA for b835434
Modules/CIPPCore/Public/Alerts/Get-CIPPAlertEntraLicenseUtilization.ps1
@@ -18,9 +18,9 @@ function Get-CIPPAlertEntraLicenseUtilization {
18
$Alerts = [System.Collections.Generic.List[string]]::new()
19
20
# Check P1 License utilization
21
- if ($LicenseData.entitledP1LicenseCount -gt 0) {
+ if ($LicenseData.entitledP1LicenseCount -gt 0 -or $LicenseData.entitledP2LicenseCount -gt 0) {
22
$P1Used = $LicenseData.p1FeatureUtilizations.conditionalAccess.userCount
23
- $P1Entitled = $LicenseData.entitledP1LicenseCount
+ $P1Entitled = $LicenseData.entitledP1LicenseCount + $LicenseData.entitledP2LicenseCount
24
$P1Usage = ($P1Used / $P1Entitled) * 100
25
$P1Overage = $P1Used - $P1Entitled
26
0 commit comments