Forum Discussion
Jeff Harlow
Feb 05, 2019Iron Contributor
Unable to connect to Exchange Online (Powershell) with MFA
Anyone see this error when attempting to connect to Exchange Online with MFA? out-lineoutput : The method or operation is not implemented. + CategoryInfo : NotSpecified: (:) [out-...
Matthew Roerig
Feb 07, 2019Copper Contributor
Hi Jeff,
Try importing the module manually. Run the following commands, delineated by the semicolon:
$Modules = @(Get-ChildItem -Path "$($env:LOCALAPPDATA)\Apps\2.0" -Filter "Microsoft.Exchange.Management.ExoPowershellModule.manifest" -Recurse );
$ModuleName = Join-path $Modules[0].Directory.FullName "Microsoft.Exchange.Management.ExoPowershellModule.dll";
Import-Module -FullyQualifiedName $ModuleName -Force;
$SessionMFEXO = New-ExoPSSession -ConnectionUri 'https://outlook.office365.com/PowerShell-LiveId' -AzureADAuthorizationEndpointUri 'https://login.windows.net/common';
Import-PSSession $SessionMFEXO -AllowClobber;
I've tested with PowerShell ISE Host version 5.1.17134.407, which does work.