File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ $Resource = "deviceAppManagement/mobileApps"
192192 else {
193193
194194 $uri = " https://graph.microsoft.com/$graphApiVersion /$ ( $Resource ) "
195- (Invoke-RestMethod - Uri $uri – Headers $authToken – Method Get).Value | ? { (! ($_ .' @odata.type' ).Contains(" managed" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.iosVppApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.windowsAppX" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.androidForWorkApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.windowsMobileMSI" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.androidLobApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.iosLobApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.microsoftStoreForBusinessApp" )) }
195+ (Invoke-RestMethod - Uri $uri - Headers $authToken - Method Get).Value | ? { (! ($_ .' @odata.type' ).Contains(" managed" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.iosVppApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.windowsAppX" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.androidForWorkApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.windowsMobileMSI" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.androidLobApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.iosLobApp" )) -and (! ($_ .' @odata.type' ).Contains(" #microsoft.graph.microsoftStoreForBusinessApp" )) }
196196
197197 }
198198
@@ -422,4 +422,4 @@ else {
422422 Write-Host " No MDM Applications added to the Intune Service..." - ForegroundColor Red
423423 Write-Host
424424
425- }
425+ }
You can’t perform that action at this time.
0 commit comments