Forum Discussion
Connecting to multiple Microsoft services with the same session
Hey underQualifried is there any update you've found?
BR Schnittlauch
Hey Schnittlauch unfortunately not. The -inlinecredential param doesn't seem to work, as we have MFA enabled. Fails on even Connect-ExchangeOnline. Preconfiguring a cert won't work, as I'd need to configure 50+ certs. Somewhere, I found if I used the -showprogress param it might work, but even doing this -
PS C:\Users\me> Connect-ExchangeOnline -ShowProgress $true | Connect-SPOService https://my-admin.sharepoint.com
(or as tow separate commands with ;) will only will only connect me to exchange
PS C:\Users\me Get-SPOSite
Connect-SPOService: No valid OAuth 2.0 authentication session exists
can't seem to use the existing session I have for ExchangeOnline, for SPO.
I've been trying to figure out the Graph PowerShell module to see if THAT would allow me to complete ALL of these tasks - but idk if that's even possible, and that's a whole new Barrel of learning.