- Install the latest release version of PowerShell from Github: https://github.com/PowerShell/PowerShell/releases
- Install MacPorts from Github:
https://github.com/macports/macports-base/releases - Install OpenSSL (older version) which is required by PowerShell: sudo port install openssl10
- If you have already existing symlinks for OpenSSL (this was driving us insane for some time) you need to move symlink /usr/local/opt/openssl out of the way
Make a symlink so that PowerShell would find it:
sudo mkdir -p /usr/local/opt/openssl
sudo ln -s /opt/local/lib/openssl-1.0 /usr/local/opt/openssl/lib - Open PowerShell in terminal: pwsh
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name PSWSMan -Scope AllUsers;
Install-Module MicrosoftTeams -Scope AllUsers;
Install-WSMan;
Install-Module -Name ExchangeOnlineManagement -Scope AllUsers;
Install-Module MicrosoftTeams;
Import-Module ExchangeOnlineManagement;
Import-Module MicrosoftTeams;
Connect-ExchangeOnline -Device;
Get-EXOMailbox | FT
5/5 - (1 vote)