Tool: Visual Studio 2019 PS Pro Tools Version: 2019. Compiled as exe, dotnet 4.72
My Project Compiles and runs fine… It loads the AD module, then the Aure AD module, but hangs loading the Exchange online module. Running the code direct on PS works fine.
Connect-ExchangeOnline -userprincipalname $msAccountName
The code gets as far as
then just sits there. Normally, I would see an authentication dialogue box.
Note, I need to use this method as we have MFA in play. Hvaen been trying to troubleshoot this for a couple of days, and I’m stumped!