The following requirements must be installed prior installation of Connect-MS365.
-
PowerShell v5.1 or PowerShell v7.3.4
Check your PS version with
$PSVersionTable
. We need at least Version 5.1 on Desktop edition. Core edition is tested with PowerShell 7.3.4, but may work with earlier versions as well. -
PowerShellGet (should be available automatically)
Check if available with
Find-Module PowerShellGet -ListAvailable
Otherwise install with
Install-Module -Name PowerShellGet -Force
-
ExchangeOnlineManagement Module v3 - if used with PS Core 7
It is recommended to use EXOv3 module with PowerShell 7 as authentication issues may occure if older EXO modules are used. If you face any issue that authentication libraries cannot be loaded, make sure that EXOv3 is installed and available for
Connect-MS365
.
Installation from online PowerShellGallery by using PowerShellGet function Install-Module
.
Install-Module Connect-MS365
With this method you may install Connect-MS365 manually to your PowerShell environment.
-
Download Connect-MS365 from one of the following sources
-
Extract Package by unzipping the downloaded package.
-
Install Connect-MS365 Module
Put the extracted packages content into one of the PowerShell module directories which automatically loads the module:
$env:USERPROFILE\Documents\WindowsPowerShell\modules
$env:ProgramFiles\WindowsPowerShell\Modules
After installation open a new powershell session and verify the availability of Connect-MS365
command.
Get-Module Connect-MS365 -ListAvailable
see 02-USAGE.md for usage instructions