I have version '2.0.5' of module 'ExchangeOnlineManagement' installed. I running Powershell 7 as administrator.
I used to be able to connect to exchange online using the command -
"Connect-ExchangeOnline -UserPrincipalName ******@contoso.onmicrosoft.com"
This method no longer works and I do not see a specific error message. Just the following,
"Exception: Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic."
It seems the error message is missing. When attemping to do the same on the standard powershell I get error mesage,
"
New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSession
Do I need to install module 3.2.0?
It has been over 3 months since I have used this feature.