Microsoft Endpoint Manager Documentation and Export tool

I have just published a tool (PowerShell script) on github to create a comprehensive documentation of a tenant and also export all settings in JSON format that can also be used for importing settings again in the same tenant or even another. This can be very useful in a scenario where there is a DEV-tenant and then a production tenant to make sure the settings are the same in both.

The script and a more detailed documentation of how to use it can be found here:
https://github.com/matbe/MEMDocumentAndExporter

The script makes use of a PowerShell module called "PSWriteWord" which enabled the creation of nice-looking word documents with TOC, tables, hyperlinks etc.

The script uses a word template to create the final documentation, this file can be customized by the user to suit their needs.

Word Template

The words "#TENANT#,#DATE#,#USERNAME#" are dynamically updated when the script is run.

Example of a TOC created by the script.

Each setting documented also includes where that specific object is assigned. It can also document who did the last change (optional). If export is enable it also includes a link to the exported JSON-file.

Example of a object documented. This is a device configuration.

If you find any bugs or have any requests please create an issue on the github page.

Hope you find it useful, if you do please let me know 🙂

/Matt
Twitter: matbg

About the author

Mattias Benninge

0 0 votes
Article Rating
Subscribe
Notify of
guest
13 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
KC Kshitiz
KC Kshitiz
1 year ago

Hi ,

What does static client id value refer to?

$clientId = "d1ddf0e4-d672-4dae-b554-9d5bdfd93547"

Garth Williams
Garth Williams
1 year ago

Hi there. Trying (as global admin), but am getting "Get-GraphUri : Request to https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps failed with HTTP Status Unauthorized Unauthorized" messages. any help would surely be appreciated! Thanks Mattias!

Garth Williams
Garth Williams
10 months ago

Hi Matt. Better late than never to close the loop on this one. Thanks! WAS an older version, got the latest and we are golden. I DO have a question though and I'll post it on Git.. If an app/profile/etc is assigned to All users, it seems the script dumps a list of all the groups. Results in a HUGE doc.

Stieven
Stieven
2 years ago

Hi Mattias,
Thank you!
This is very helpfull for documenting. Before I used to generate jsons and csv files from PS. But this is a mutch more complete solution

Cameron Ritchie
Cameron Ritchie
2 years ago

I've been waiting for someone that knows how to script this for a year. Legend! You have enabled us techs to work and tick off the documentation aspect with a quicker turn around.

Last edited 2 years ago by Cameron Ritchie
Sumit
Sumit
3 years ago

This is so cool , Great Job Matt !!!

Josh
Josh
3 years ago

This looks really great. I can see us definitely utilizing something like this in the future. Great job!

Martin Denis Caddick
Martin Denis Caddick
3 years ago

Awesome work Matt.
I was looking at this https://github.com/Micke-K/IntuneManagement and planning on extending it by creating a button that would use PSWriteWord to create word docs as well. May be something in there that you can use. Cheers


>