r/PowerShell • u/blockplanner • 9h ago
News Exchange Online Powershell Unusable in British Columbia.
The new BC timezone isn't in the 2024 International Components for Unicode library that ships with Windows, so it gets translated as Etc/Unknown.
Encountering an unknown timezone causes the Chakra Javascript Interpreter from 2015's version of Microsoft Edge to unload the Intl library from JavaScript.
And as soon as they fail to load a function from the Intl library (like when you log in and they process the timestamp and user timezone settings) M365 login windows give a "Something went wrong" error with no way to back out or see more information.
Since Exchange Online PowerShell uses Chakra for its login windows (both IPPS and EXO), that means nobody using BC time can use it in powershell 5.1 (Powershell 7 offers a -device option that can be used as a workaround, permitting you to load the authentication in a proper browser).
The fun part is that this is a JavaScript error in an embedded browser with no troubleshooting hooks or logging options. This means that the error isn't logged anywhere and can't be logged even if you're snooping on web traffic and running Procmon. Microsoft says you logged in just fine, powershell says you cancelled the login. You can only learn what happened by attaching some sort of debugger to the process or reading its memory.
1
u/KevMar Community Blogger 8h ago
Nice find. That sounds like it would have been a frustrating one to track down. Got a link to the GitHub issue yet?