Quick Tip - Opening An Exchange Online Protection Shell
source link: https://thomasrayner.ca/quick-tip-opening-an-exchange-online-protection-shell/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Quick Tip - Opening An Exchange Online Protection Shell
There’s lots of big, exciting, non-blogable things happening at work this week so here’s a very quick tip.
Last week I wrote a post on a PowerShell function I threw in my profile to connect quickly to Exchange. That’s great, but what if you also want to manage Exchange Online Protection (EOP) from a PoweShell console? Well it turns out to be pretty easy.
$cred = Get-Credential
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection
import-pssession $s
This looks a lot like the function I showed you last week except it’s connecting to Office 365 and you need to use your Live ID instead of AD credentials.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK