Jump to content

Recommended Posts

Posted

I'm trying to remote into 365 using powershell and getting an error. It used to work fine but not done this for 12 months or more so need help :confused:

 

So I ran the Microsoft Exchange Online Powershell Module which wanted to update so after the update I entered the command Connect-IPPSSession -UserPrincipalName @xxxxxxx.xxxxxx.sch.uk into the powershell window, then the password all as normal. I got the 2FA prompt on my mobile, everything looks fine then the error

 

 

WARNING: Your connection has been redirected to the following URI:

"https://eur02b.ps.compliance.protection.outlook.com/PowerShell-LiveId?clientmodule=MFA&BasicAuthToOAuthConversion=

true&HideBannerMessage=true;PSVersion=5.1.17763.5328 "

New-ExoPSSession : Connecting to remote server eur02b.ps.compliance.protection.outlook.com failed with the following

error message : For more information, see the about_Remote_Troubleshooting Help topic.

At C:\Users\\AppData\Local\Apps\2.0\MZMA26YK.96O\LJZMJ3K9.AWK\micr..tion_d76090feedfde4f3_0011.0000_4a24bfb4fe4b3

e00\CreateExoPSSession.ps1:321 char:30

+ ... PSSession = New-ExoPSSession -UserPrincipalName $UserPrincipalName.Va ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException

+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchang

e.Management.ExoPowershellSnapin.NewExoPSSession

 

I remember reading something was going to change with 365 and powershell but not sure now as it was a while ago. I'm assuming I need to reinstall using the latest version?

 

Thanks in advance.

Posted
Instead of using Connect-IPPSSession you should be able to use the "Connect-ExchangeOnline" command instead. This will allow access to the new exchange module.
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...