SOLVED

Problem with latest ExchangeOnlineManagement module (2.0.4)

New Contributor

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

2 Replies
best response confirmed by NJKWork (New Contributor)
Solution
I try it from my side and get a similar issue
but when I try it using PowerShell 7 it works.
I think you might need to consider using PowerShell 7
Thank you for testing and the suggestion.