nerototally.blogg.se

Macports apple silicon
Macports apple silicon










Note that on an Apple Silicon machine, the entirety of this toolchain (PowerShell, WSMan and OpenSSL) will be running as x86_64 binaries under Rosetta. This connection method will then launch your preferred browser to authenticate, including handling any MFA prompts, and then pass an authentication token back to the PowerShell session. Once this has completed, you can launch PowerShell once more and connect to Exchange Online via Connect-ExchangeOnline Technically, only the Install-WSMan command needs to be run as root, so if you’re feeling paranoid you can adjust these instructions to suit. Install-Module -Name ExchangeOnlineManagement

macports apple silicon

Once you’re in PowerShell, run the following commands: Install-Module -Name PSWSMan

macports apple silicon

Next, you need to install PSWSman and the Exchange Online Management modules. This step of installing the Universal build of OpenSSL is critical to getting everything working together on Apple Silicon. If you’re on an Intel based Mac, simply type sudo port install openssl however if you are on an Apple Silicon Mac, type sudo port install openssl +universal Once they are both installed, install OpenSSL from MacPorts. Next up, install the relevant version of MacPorts for your OS I have not yet tested it with PowerShell 7.2.x or higher, which comes in a native arm64 build.įirst of all, grab the x86_64 version of PowerShell from the Releases page. I have only tested this with PowerShell 7.1.x, on arm64 (using Rosetta 2) and x86_64. This method works, and has been tested on Intel and Apple Silicon Macs.

Macports apple silicon how to#

There have been some slight changes, so I thought I’d just make a new article here, including how to get it working on Apple Silicon Macs. I have written a post previously on how to set up PowerShell on a Mac to connect to Exchange Online.

macports apple silicon

Connect to Exchange Online using PowerShell on macOS – now 100% native arm64/Apple Silicon










Macports apple silicon