This is the official link that explain how to do it in the Microsoft’s way :
First, we need to install “BREW”…
Now, we need to install Homebrew ( see this guid: https://brew.sh )
This is the command:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
this is the output:
when finished, run this command:
brew cask install powershell
At this point lunch it !
this is the command :
Now , we can connect to our 365 tenant ( see this Guide: https://marcoschiavon.net/connect-to-office-365-powershell-connect-msolservice/ )
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $UserCredential -Authentication Basic -AllowRedirection
UPDATES 21 June 2021 ……
If i launch the powershell i receive this warning..
So let’s go, We will update our PWS from 7.1.0 to 7.1.2!
the first thing to do, is to update your HOMEBREW using this command : brew update
in my case i found an issue because my brew was a “shallow clone”.. so i was obligated to to also this:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch –unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch –unshallow
Now we can issue the “brew update” to verify everything is ok
now issue the command to update your Powershell:
brew upgrade powershell –cask