How to export Intune Data via powershell

Question

Hi how would you export all devices in a CSV file for devices in Intune?

I’m looking to automate a export report.

SCCM we could use their cmdlets but Intune does’nt seem to have any.

Has anyone created any scripts for exporting devices and their info using graph api?

in progress 0
BobbyM 2022-01-14T22:43:08+05:30 2 Answers 232 views Beginner 0

Answers ( 2 )

    0
    2022-01-28T03:59:30+05:30

    Run PowerShell as an Administrator and accept the UAC popup. Run Set-ExecutionPolicy Bypass. Run .\DeviceConfiguration_Export.ps1. The next step is to provide the export location.
    Now all of our settings are exported!

  1. You have better options with Intune like Graph API to export all these records?

    https://graph.microsoft.com/beta/deviceManagement/reports/exportJobs

    When making the request, you must provide a reportName parameter as part of the request body based on the report that you would like to export. Below is an example of an export request for the Devices report. You must use the POST HTTP method on your request. The POST method is used to create a new resource or perform an action.

    You can also try to analyze https://howtomanagedevices.com/intune/1330/take-backup-intune-settings/

Leave an answer

Sorry, you do not have a permission to answer to this question .