File tree Expand file tree Collapse file tree
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function Invoke-CIPPStandardLegacyEmailReportAddins {
4646 )
4747
4848 try {
49- $CurrentApps = New-GraphGetRequest - uri " https://graph.microsoft.com/beta/applications& select=addins " - TenantID $Tenant
49+ $CurrentApps = New-GraphGetRequest - uri " https://graph.microsoft.com/beta/applications? `$ select=id,addIns " - TenantID $Tenant
5050
5151 # Filter to only applications that have the legacy add-ins we're looking for
5252 $LegacyProductIds = $LegacyAddins | ForEach-Object { $_.ProductId }
@@ -108,7 +108,7 @@ function Invoke-CIPPStandardLegacyEmailReportAddins {
108108 # If we performed remediation and need to report/alert, get fresh state
109109 if ($RemediationPerformed -and ($Settings.alert -eq $true -or $Settings.report -eq $true )) {
110110 try {
111- $FreshApps = New-GraphGetRequest - uri " https://graph.microsoft.com/beta/applications& select=addins " - TenantID $Tenant
111+ $FreshApps = New-GraphGetRequest - uri " https://graph.microsoft.com/beta/applications? `$ select=addIns " - TenantID $Tenant
112112 $LegacyProductIds = $LegacyAddins | ForEach-Object { $_.ProductId }
113113 $FreshInstalledApps = $FreshApps | Where-Object {
114114 $app = $_
You can’t perform that action at this time.
0 commit comments