M365Connect
1.0.1
Connect to Microsoft 365 services with a single command. Supports PowerShell 5.1 and 7+, interactive authentication, stored credentials, and service principal/app registration authentication.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) nikkelly. All rights reserved.
Package Details
Author(s)
- nikkelly
Tags
Microsoft365 Azure Teams Exchange SharePoint AzureAD Graph Intune Office365
Functions
Connect-MSTeams Connect-MSExchange Connect-MSExchangeServer Connect-MSAzureAD Connect-MSGraph Connect-MSSharePoint Connect-MSSecurityCompliance Connect-MSIntune Connect-AllMSServices Disconnect-AllMSServices Add-MSAccount Remove-MSAccount Add-MSAppRegistration Remove-MSAppRegistration Add-MSMFA Remove-MSMFA Get-MSConnectionStatus Show-MSCommands
PSEditions
Dependencies
This module has no dependencies.
Release Notes
## 1.0.1
- Fix missing Public/Private folders in published package
## 1.0.0
- Initial release on PowerShell Gallery
- PowerShell module format (.psd1 / .psm1) with Public/Private function layout
- PowerShell 5.1 and 7+ support with Microsoft Graph fallback for deprecated modules
- Service principal/app registration authentication (certificate or client secret)
- Interactive and stored credential authentication with optional MFA
- Connection tracking and status reporting via Get-MSConnectionStatus
- Backward-compatible aliases for all original commands
- Deprecation warnings for AzureAD and MSOnline modules
FileList
- M365Connect.nuspec
- Private\Export-MSCredential.ps1
- Private\Initialize-ModuleState.ps1
- Private\Update-ConnectedServices.ps1
- Public\Add-MSAppRegistration.ps1
- Public\Connect-MSGraph.ps1
- Public\Connect-MSSharePoint.ps1
- Public\Disconnect-AllMSServices.ps1
- Public\Remove-MSAccount.ps1
- Public\Remove-MSMFA.ps1
- LICENSE
- M365Connect.psm1
- Private\Get-MSCredential.ps1
- Private\Test-AlreadyConnected.ps1
- Private\Write-ColorOutput.ps1
- Public\Add-MSMFA.ps1
- Public\Connect-MSAzureAD.ps1
- Public\Connect-MSIntune.ps1
- Public\Connect-MSTeams.ps1
- Public\Get-MSConnectionStatus.ps1
- Public\Remove-MSAppRegistration.ps1
- Public\Show-MSCommands.ps1
- readme.md
- Private\Import-MSCredential.ps1
- Private\Test-ModuleAvailable.ps1
- Public\Add-MSAccount.ps1
- Public\Connect-AllMSServices.ps1
- Public\Connect-MSExchange.ps1
- Public\Connect-MSSecurityCompliance.ps1
- M365Connect.psd1
- Private\Export-MSAppRegistration.ps1
- Public\Connect-MSExchangeServer.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.1 (current version) | 9 | 2/8/2026 |
| 1.0.0 | 3 | 2/8/2026 |