Automatic Intune Documentation with GraphAPI

In the last time I had more and more Intune projects. Like in any other projects at some point you should start documenting the implementation. This is taking a lot of time and often doesn’t reflect the real settings for a long time, because the settings were changed again. Therefore I created a  documentation script, which will create a word file with all the necessary information in seconds. The document is at the moment not well formatted, but is perfect to copy the information to your concept.

Current Features:

  • Configuration Policies
  • Compliance Policies
  • Device Enrollment Restrictions
  • Terms and Conditions
  • Applications (Only Assigned)

In the background I use the MS Graph API which is really helpful for such tasks.


Usage of Intune Documentation Script

Download the DocumentIntune.ps1 file and execute it with PowerShell.exe:

powershell.exe -executionpolicy bypass -file DocumentIntune.ps1

The Documentation will be created in the same folder like the DocumentIntune.ps1 file resides.

Important: Before using the Script the first time, you have to ensure, that you have installed the AzureAD and PSWord Module. To do that, you have to start PowerShell as an Adminstrator and install them:

Install-Module AzureAD
Install-Module PSWord

Thanks to

@Microsoftgraph for the PowerShell Examples:

@guidooliveira for the PSWord Module, which enables the creation of the Word file.

@mirkocolemberg for the help and testing of the script.

Thomas Kurth
Follow me

Thomas Kurth

Principal Workplace Consultant | MVP at baseVISION AG
I’m a consultant, trainer and architect for modern workplace and enterprise mobility projects with Microsoft Technologies in the past eight years. I love to push and design the modern workplace based on Windows 10, EM&S and O365 for my customers which is the only answer for the current security threats, agile world and the fast-changing business requirements of my customers. Important for me is to simplify and automate the operational processes, because there are the highest costs.
Thomas Kurth
Follow me


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.