Backup and Restore your Intune Configuration using PowerShell
I found this fantastic PowerShell module from jseerden that queries Microsoft Graph, and allows for cross-tenant Backup & Restore of your Intune Configuration. The Intune Configuration is backed up as JSON files in a given directory. The module allows an administrator to backup, restore and even compare different Intune backup sets.
Pre-Requisites
The module requires a total of 3 modules to be present, you can install them by running the following commands in an administrative PowerShell prompt:
AzureAD Module
- AzureAD (
Install-Module -Name AzureAD
)
MSGraphFunction Module
- MSGraphFunction (
Install-Module -Name MSGraphFunctions
)
IntuneBackupandRestore Module
The IntuneBackupandRestore PowerShell module is hosted on the PowerShell Gallery. You can install it by running the following command in an administrative PowerShell prompt:
Install-Module -Name IntuneBackupAndRestore
Connect to Microsoft Graph
Next, we will connect to Microsoft Graph using the “Microsoft Intune PowerShell” application in AzureAD, so you don’t need to create your own … Continue...