M365CertAuth

1.1.1

Certificate-based authentication module for Microsoft 365 PowerShell modules. Automates certificate creation, app registration, permission assignment, and provides ready-to-use certificates for all M365 services.

Minimum PowerShell version

5.1

Installation Options

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

Install-Module -Name M365CertAuth -RequiredVersion 1.1.1

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

Install-PSResource -Name M365CertAuth -Version 1.1.1

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) 2025 PowerShell Community. All rights reserved.

Package Details

Author(s)

  • PowerShell Community

Tags

Microsoft365 Azure Certificate Authentication Exchange SharePoint Graph PowerShell

Functions

Get-CertificateForAuth Show-CertificateAuthHelp

Dependencies

This module has no dependencies.

Release Notes

Version 1.1.1
- Added SharePointTenantName property for correct SharePoint URL detection
- Enhanced domain detection logic for multi-tenant scenarios

Version 1.1.0
- Added tenant information to return object (TenantName, PrimaryDomain, InitialDomain)
- Enhanced module to provide all necessary tenant context for consuming scripts
- Eliminates need for scripts to call Get-MgDomain themselves

Version 1.0.4
- Code cleanup and optimization
- Removed unnecessary validation checks that caused false warnings
- Streamlined module structure

Version 1.0.3
- Documentation cleanup and version update

Version 1.0.2
- Improved role assignment approach for better compatibility
- Added service principal propagation delay for better reliability
- Made Global Administrator role assignment optional with graceful failure handling
- Enhanced error handling to use warnings instead of hard failures

Version 1.0.1
- Fixed Exchange Online App-Only authentication by adding Exchange Administrator role assignment
- Enhanced role validation for existing app registrations
- Improved error handling for directory role assignments

Version 1.0.0
- Initial release
- Automated certificate creation and management
- App registration with comprehensive permissions
- Support for Exchange Online, SharePoint, Microsoft Graph, Teams, Azure, and Security & Compliance
- Enterprise-grade certificate validation and duplicate detection
- Automatic expired certificate cleanup
- Built-in help system with connection examples

FileList

Version History

Version Downloads Last updated
1.2.20 17 7/15/2026
1.2.16 125 2/27/2026
1.2.15 23 2/10/2026
1.2.8 15 12/12/2025
1.2.7 7 12/11/2025
1.2.6 10 10/22/2025
1.2.5 10 9/8/2025
1.2.4 16 9/5/2025
1.2.3 10 9/4/2025
1.2.1 9 9/4/2025
1.2.0 6 9/4/2025
1.1.2 9 9/4/2025
1.1.1 (current version) 12 9/3/2025
1.1.0 7 9/3/2025
1.0.4 8 9/3/2025
1.0.3 7 9/3/2025
1.0.2 7 9/3/2025
1.0.1 7 9/3/2025
1.0.0 9 9/3/2025
Show less