File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Modules/CIPPCore/Public/Entrypoints Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Function Invoke-ListIntunePolicy {
24
24
if ($ID ) {
25
25
$GraphRequest = New-GraphGetRequest - uri " https://graph.microsoft.com/beta/deviceManagement/$ ( $urlname ) ('$ID ')" - tenantid $tenantfilter
26
26
} else {
27
- $Groups = New-GraphGetRequest - uri ' https://graph.microsoft.com/beta/groups' - tenantid $tenantfilter | Select-Object - Property id, displayName
27
+ $Groups = New-GraphGetRequest - uri ' https://graph.microsoft.com/beta/groups?$top=999 ' - tenantid $tenantfilter | Select-Object - Property id, displayName
28
28
29
29
$BulkRequests = [PSCustomObject ]@ (
30
30
@ {
@@ -57,6 +57,8 @@ Function Invoke-ListIntunePolicy {
57
57
$BulkResults = New-GraphBulkRequest - Requests $BulkRequests - tenantid $TenantFilter
58
58
59
59
$GraphRequest = $BulkResults.body.value | ForEach-Object {
60
+ $URLName = (($_ ).split(' ?' ) | Select-Object - First 1 ) -replace ' https://graph.microsoft.com/beta/deviceManagement/' , ' '
61
+
60
62
$policyTypeName = switch - Wildcard (
$_ .
' [email protected] ' ) {
61
63
' *microsoft.graph.windowsIdentityProtectionConfiguration*' { ' Identity Protection' }
62
64
' *microsoft.graph.windows10EndpointProtectionConfiguration*' { ' Endpoint Protection' }
You can’t perform that action at this time.
0 commit comments