WPNinjas HeaderWPNinjas Header

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

Since version 2.0.0 the Automatic Intune Documentation script is available in the PowerShell Gallery and therefore its much simpler to install and use it. You can just use these two commands:
Install-Module IntuneDocumentation
Invoke-IntuneDocumentation -FullDocumentationPath c:\temp\IntuneDoc.docx

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

Thanks to

@Microsoftgraph for the PowerShell Examples: https://github.com/microsoftgraph/powershell-intune-samples

@guidooliveira for the PSWord Module, which enables the creation of the Word file. https://github.com/guidooliveira/PSWord

@mirkocolemberg for the help and testing of the script.

Follow me


Leave a Reply

Avatar placeholder

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.