Connect-IPPSSession with Modern Auth

Richard Long 341 Reputation points
2022-09-30T22:52:39.84+00:00

Hello,

I am able to connect to Exchange Online with modern auth, but when I try Connect-IPPSSession, I get this message about basic auth needing to be enabled:

PS C:\Windows> Connect-IPPSSession -UserPrincipalName xxxx@xxxxxxxxxxxxx .com
WARNING: Please note that you can only use above 9 new EXO cmdlets (the one with -EXO naming pattern).You can't use other cmdlets as we couldn't establish a Remote PowerShell session
as basic auth is disabled in your client machine. To enable Basic Auth, please check instruction here
https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#prerequisites-for-the-exo-v2-module
Create Powershell Session is failed using OAuth
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.0.0\netFramework\ExchangeOnlineManagement.psm1:730 char:21

  • throw $_.Exception;
  • ~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (:) [], Exception
  • FullyQualifiedErrorId : Create Powershell Session is failed using OAuth

I am running Exchange Online 2.0.5. Has anyone else run into this? Can you use modern auth with Connect-IPPSSession?

Thanks

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,185 questions
{count} votes

Accepted answer
  1. Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
    2022-10-01T06:20:20.65+00:00

    Basic auth is disabled client-side in this case, on the WinRM settings. So you can just enable it there. Microsoft has not yet updated the Connect-IPPSSession to get rid of the WinRM dependencies, this should happen in the next module version. Btw, V3 is out now: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#updates-for-version-300-the-exo-v3-module

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.