Hi Darko, did you use -All:$true, or just -All? The first should provide you with all the configured policies. Do you also have policies configured from the endpoint security blade? Regards Ruud
Intune MSGraph Command for Configuration Profiles not working
Hi,
Please inform me about MSGraph PowerShell command to get all Intune Configuration Profiles.
My environment has 136 configuration profiles.
v1.0 Get-MgDeviceManagementDeviceConfiguration returns 63 objects
beta Get-MgDeviceManagementDeviceConfiguration returns 100 objects
No command honors -All or -Skip parameter or return all objects.
Please help.
Thank you in advance.
Regards,
2 answers
Sort by: Most helpful
-
-
Lu Dai-MSFT 28,446 Reputation points
2023-02-06T02:33:42.3533333+00:00 @Darko Kljajic Thanks for posting in our Q&A.
For this issue, administrative templates profiles and settings catalog profiles are not listed in this request.
Administrative templates profiles are listed in "groupPolicyConfiguration".
Honestly, I didn't know where we can get settings catalog policies.
However, I try to get all configuration Profiles via powershell. It works well. It is suggested to try.
Install-module Intunestuff -Force connect-MSgraph Get-intunePolicy -policyType 'ConfigurationPolicy' -basicOverview -flatOutput
For more details, please refer to the following link:
https://doitpsway.com/get-all-intune-policies-using-powershell-and-graph-api
Note: Non-Microsoft link, just for the reference.
Hope it will give you some ideas.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.