Apr 27 2021 06:01 AM - edited Apr 27 2021 01:27 PM
I use a lot of Windows forms in my scripts. With the latest release of the ExchangeOnlineManagement module (2.0.4), the authentication pop-up (when used with Windows PowerShell 5.1) no longer appears if it is called after the "New-Object" cmdlet is called. Here is an example:
Add-Type -AssemblyName System.Windows.Forms
$FormMain = New-Object System.Windows.Forms.Form
Connect-ExchangeOnline
With previous versions of the module (2.0.3) and earlier, the authentication screen loads with no problem. However, with 2.0.4, the script just hangs and never shows the pop-up.
Moving the Connect-Exchange cmdlet first it not an easy option for me because I use a lot of form functionality to display feedback when O365 authentication is happening and the module is loading. I would like to use the latest version of the module and not have to update a large amount of existing scripts.
Does anyone have any suggestions as to how I can submit this bug to the module developers, similar to how we can post issues on a GitHub repo (I cannot find a repo for this module).
Thanks
NJKWork
Apr 28 2021 01:01 AM
SolutionApr 28 2021 05:46 AM
Apr 28 2021 01:01 AM
Solution