r/PowerShell • u/Sudden-Money7836 • May 01 '26
Exchange Powershell MacOS 26
Hey folks,
was just wondering, is macos 26 supported for things like AZConnect and Connect-ExchangeOnline etc? O keep getting the error below and just wondered if anyone knows if this is coming or a workaround?
PS /Users/xyz> Connect-ExchangeOnline
Error Acquiring Token:
System.PlatformNotSupportedException: macOS 26.4.1
at Microsoft.Identity.Client.Platforms.netstandard.NetCorePlatformProxy.StartDefaultOsBrowserAsync(String url, Boolean isBrokerConfigured)
at Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser.DefaultOsBrowserWebUi.<>c__DisplayClass10_0.<InterceptAuthorizationUriAsync>b__0(Uri u)
at Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser.DefaultOsBrowserWebUi.InterceptAuthorizationUriAsync(Uri authorizationUri, Uri redirectUri, Boolean isBrokerConfigured, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Platforms.Shared.Desktop.OsBrowser.DefaultOsBrowserWebUi.AcquireAuthorizationAsync(Uri authorizationUri, Uri redirectUri, RequestContext requestContext, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.AuthCodeRequestComponent.FetchAuthCodeAndPkceInternalAsync(IWebUI webUi, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.AuthCodeRequestComponent.FetchAuthCodeAndPkceVerifierAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.GetTokenResponseAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.<>c__DisplayClass11_1.<<RunAsync>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Identity.Client.Utils.StopwatchService.MeasureCodeBlockAsync(Func`1 codeBlock)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.ApiConfig.Executors.PublicClientExecutor.ExecuteAsync(AcquireTokenCommonParameters commonParameters, AcquireTokenInteractiveParameters interactiveParameters, CancellationToken cancellationToken)
at Microsoft.Exchange.Management.AdminApiProvider.Authentication.MSALTokenProvider.GetAccessTokenAsync(String claims, String cmdletId)
OperationStopped: macOS 26.4.1
Thanks
Edit: A workaround was provided uninstall the current installed exchange online PowerShell. Reinstall with -Allowprerelease and this will work on macOS 26.x
3
u/prog-no-sys May 01 '26
Those commands have been imported into Microsoft Graph. You have to use that module for these instead of the old ones.
3
u/Muttering May 27 '26
I'm on macOS 26.5, PowerShell 7.6.1. I uninstalled the ExchangeOnlineManagement module and reinstalled it, allowing prerelease, and now I can connect once more:
uninstall-Module exchangeOnlineManagementinstall-Module exchangeOnlineManagement -AllowPrerelease5
u/victorvazdev May 01 '26
For Connect-ExchangeOnline, I managed to get it working using the device code, resulting in the following command:
Connect-ExchangeOnline -Device
1
u/purplemonkeymad May 01 '26
Is your version of ExchangeOnlineManagement up-to-date?
1
u/Unlucky_Total_6081 May 18 '26
Did you ever get a solution to this? I am having the same issue. System.PlatformNotSupportedException: macOS 26.5.0. Module version 3.9.2
1
u/StilPhone Jun 03 '26
I'm getting the same issue using 15.7.7. I have a vm running 26.5.1 and it doesn't like that either!
2
u/halap3n0 May 21 '26
This issue is very annoying. I have to keep a cloud PC running just to use EXO PowerShell.