PowerShell for exchange online

linkaiyi
Follow

Connect to exchange server online with powershell

installation

 Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5

connect with username

Connect-ExchangeOnline -UserPrincipalName lin@deutsche-datenschutzkanzlei.de

get all email accounts

Get-Recipient | Select DisplayName, RecipientType, EmailAddresses

get all relevant fields

Get-Mailbox -Identity "Kaiyi Lin" | Format-List

filter the list with relevant fields

Get-Recipient -Filter "EmailAddresses -like 'support*'"

get blocked sender list

Get-BlockedSenderAddress
 Get-BlockedSenderAddress -SenderAddress support@schulungen-datenschutz.de
Object has 0 attachments

Was this article helpful?

This article is viewed 41 times!

Recent Viewed Articles

0 Comments

Leave a Comment

Support