1. Install PowerShell 7 on macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask powershell
2. Install MacPorts
3. Install OpenSSL
sudo port selfupdate;
sudo port upgrade outdated;
sudo port install openssl10;
sudo mkdir -p /usr/local/opt/openssl;
sudo ln -s /opt/local/lib/openssl-1.0 /usr/local/opt/openssl/lib;
sudo pwsh
4. Connect to Exchange Online
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name PSWSMan;
Install-WSMan;
Install-Module -Name ExchangeOnlineManagement;
Import-Module ExchangeOnlineManagement;
Connect-ExchangeOnline -Device
5/5 - (1 vote)