File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ Function Invoke-ListIntunePolicy {
56
56
57
57
$BulkResults = New-GraphBulkRequest - Requests $BulkRequests - tenantid $TenantFilter
58
58
59
- $GraphRequest = $BulkResults.body.value | ForEach-Object {
60
- $URLName = (( $_ ).split( ' ? ' ) | Select-Object - First 1 ) -replace ' https://graph.microsoft.com/beta/deviceManagement/ ' , ' '
61
-
59
+ $GraphRequest = $BulkResults | ForEach-Object {
60
+ $URLName = $_ .Id
61
+ $_ .body.Value | ForEach-Object {
62
62
$policyTypeName = switch - Wildcard (
$_ .
' [email protected] ' ) {
63
63
' *microsoft.graph.windowsIdentityProtectionConfiguration*' { ' Identity Protection' }
64
64
' *microsoft.graph.windows10EndpointProtectionConfiguration*' { ' Endpoint Protection' }
@@ -97,7 +97,7 @@ Function Invoke-ListIntunePolicy {
97
97
$_ | Add-Member - NotePropertyName PolicyExclude - NotePropertyValue ($PolicyExclude -join ' , ' )
98
98
$_
99
99
} | Where-Object { $_.DisplayName -ne $null }
100
-
100
+ }
101
101
}
102
102
$StatusCode = [HttpStatusCode ]::OK
103
103
} catch {
You can’t perform that action at this time.
0 commit comments