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.
- 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
@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.