M365Documentation

3.7.0

Automatic Documentation of M365 to simplify the life of admins and consultants.

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name M365Documentation

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name M365Documentation

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Thomas Kurth. All rights reserved.

Package Details

Author(s)

  • Thomas Kurth

Tags

Intune Windows M365 Documentation MEM MSGraph AzureAD EntraID ConditionalAccess

Functions

Connect-M365Doc Get-M365Doc Get-M365DocValidSection Invoke-M365DocTranslationUI New-M365DocAppRegistration Optimize-M365Doc Test-M365DocConnection Write-M365DocCsv Write-M365DocHTML Write-M365DocJson Write-M365DocMD Write-M365DocWord

Dependencies

This module has no dependencies.

Release Notes

3.7.0

- Skip empty or whitespace-only section and object headings in Word export while preserving their content.
- Resolve transposed Word object headings from displayName, Display Name, M_DisplayName, or M_Display Name, skipping titles that duplicate the section heading.
- Skip absent nested sections during documentation optimization, matching the existing top-level behavior when collectors return no data.
- Fix #85: Update Word export to the PSWriteOffice 1.0.2 API and require version 1.0.2 or later. Remove the concrete Word document parameter type dependency. Older PSWriteOffice versions are no longer supported; restart PowerShell after upgrading.
- Enforce the PSWriteOffice minimum version for direct module-script imports and load the manifest in local test scripts so dependency checks cannot be bypassed.
- Support PSWriteOffice 3.0.8 as well as 1.0.2 by updating the table of contents through the shared document API rather than the renamed cmdlet.
- Fix #88: Add User.Read.All, AuditLog.Read.All and Policy.Read.PermissionGrant application permissions for guest sign-in activity and Consent Governance documentation.
- Request both delegated and application permissions where available in New-M365DocAppRegistration using the live Graph permission catalog, validate that every required permission resolves, and fix application role consent assignment. Warn when permissions resolve only as delegated and cannot be used by app-only tokens.
- Existing app registrations must have the missing application permissions added and admin consent granted, followed by acquiring a new token; they are not automatically updated.
- Correct "sufficiant" to "sufficient" in the Microsoft Graph Forbidden warning.
- Continue tenant documentation when Microsoft Graph returns AadPremiumLicenseRequired, with a licensing-specific warning identifying the skipped request.
- Fix CAE endpoint 404 error as feature is no longer a seperate API endpoint
- Fix Cloud Print printer subsection titles being executed as commands instead of strings.
- Replace the retired Information Protection labels endpoint with the beta sensitivity labels API, using organization labels for app-only authentication and user labels for interactive authentication. Request InformationProtectionPolicy.Read for delegated access and skip unsupported US Government clouds with a warning.
- Add a Copilot component for Copilot policy settings, admin limited mode, and agent identity blueprints with communication configuration.
- Add AgentIdentityBlueprint.Read.All and AgentCommunicationConfiguration.ReadWrite.All to the application registration permissions for agent identity blueprint documentation.



To see the complete history, checkout the Release Notes on Github

FileList

Version History

Version Downloads Last updated
3.7.0 (current version) 29 10/9/2026
3.6.0 3,329 3/15/2026
3.5.0 2,184 10/22/2025
3.5.0-alpha 44 10/10/2025
3.4.3 417 9/30/2025
3.4.2 4,109 5/6/2025
3.4.1 945 3/28/2025
3.4.0 232 3/24/2025
3.3.1 141 3/23/2025
3.3.0 102,677 4/7/2024
3.2.2 13,698 2/18/2024
3.2.1 14,609 7/22/2023
3.2.0 23 7/21/2023
3.1.2 3,828 10/26/2021
3.1.0 411 8/8/2021
3.0.3 305 5/26/2021
3.0.2 81 5/25/2021
3.0.1-alpha 55 4/26/2021
3.0.0-alpha 34 4/21/2021
Show more