This blog is about creating a backup for your Intune Configuration with a 90 day retention. This way you could go back in time if you have a lot of configuration changes. Sometimes there are a lot of Sysadmins making changes in the configuration without proper documentation. This way you can just look at the configuration of the day before.

Let start with some preparations. You need to following Powershell modules:

If you never have connected to Graph in Powershell you need to grant consent. You can do so by Connecting to Graph via this command:

Fill in your credentials and you will get the following prompt:

Please click on Accept.

Now you are ready to implement the script that will backup your Microsoft Intune Configuration. I would schedule this on a management server. This is the script:

The backup folder will look like this:

The total storage needed for 1 day is about 3 – 4 MB. So the 90 day retention will only take about 270 – 360 MB in total.

If you want to compare some backups from a couple of days backup you can use the CMDlet:

And if you then want to restore the Intune Backup you can use this CMDlet:

I will update this sometime to run it from an Azure Automation account to backup this to Azure Storage Blob. Maybe someone could help me with that.

Thanks and kind regards,

Niels

Related Posts

One thought on “Microsoft Intune Daily Configuration Backup

Leave a Reply