---
title: "Comment by Pavel Duda on \"Get Intune Compliance data using PowerShell leveraging Graph API\" | Hashnode"
description: "Hi Ondrej Sebela I was trying to do similar thing but for device configurations so I know what devices have which configurations set properly and which failed."
url: "https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3/comment/664726038a87ec10e6789307"
---

[Discussion](https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3)

Comment [Get Intune Compliance data using PowerShell leveraging Graph API](https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3)

[Pavel Duda](https://hashnode.com/@GhuulCZ)

[May 17, 2024](https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3/comment/664726038a87ec10e6789307)

Hi [Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf) I was trying to do similar thing but for device configurations so I know what devices have which configurations set properly and which failed. I was able to list some statuses "an block" but so far I did not manage to query status of configuration for particular device - well at least not through PS (I did end up digging into Intune using developer tools and checking how it displays the device state via standard GET/POST). Have you ever tried to dig this information using MgGraph modules?

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[May 17, 2024](https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3/comment/664726038a87ec10e6789307#reply-664729b7e8c01717000c79c4)

1.  I don't have such function, but to get all intune policies for a given account check [doitpshway.com/get-all-intune-policies-assigned-t…](https://doitpshway.com/get-all-intune-policies-assigned-to-the-specified-account-using-powershell) (uses [doitpshway.com/get-all-intune-policies-using-powe…](https://doitpshway.com/get-all-intune-policies-using-powershell-and-graph-api) in the background)
2.  if you know the correct API URI, you can easily translate it back to the corresponding cmdlet by Find-MgGraphCommand -Uri "[graph.microsoft.com/v1.0/deviceManagement](https://graph.microsoft.com/v1.0/deviceManagement)" (just replace the URI part)
3.  if you want to check policy status directly on the client itself, check [doitpshway.com/get-a-better-intune-policy-report-…](https://doitpshway.com/get-a-better-intune-policy-report-part-3-final)
4.  this is how I am getting other types of reports, so it might help [doitpshway.com/get-intune-reports-using-powershel…](https://doitpshway.com/get-intune-reports-using-powershell-leveraging-graph-api)

[Pavel Duda](https://hashnode.com/@GhuulCZ)

[May 19, 2024](https://hashnode.com/posts/get-intune-compliance-data-using-powershell-leveraging-graph-api/60f6969fd6a73079b398bae3/comment/664726038a87ec10e6789307#reply-6649c1375c57baae47364594)

Thanks [Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf) will check that. Coming from the other MDMs I share your frustration of terrible reporting capabilities of Intune :)
