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
Connect-IPPSSession with Modern Auth
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
-
Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
2022-10-01T06:20:20.65+00:00