Common CmdLets

# Install Exchange Module 
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.4

# Connects to Exchange Online
Connect-ExchangeOnline -UserPrincipalName 'UserID@Scriptsbyscott.com'

#Common Commands:
Get-EXOMailbox | Select Displayname,PrimarySMTPAddress,RecipientType 

# Get Size of all users mailbox 
Get-EXOMailbox | Get-ExoMailboxStatistics |select DisplayName,TotalItemSize

# Get Mailbox Enabled Connection Types 
Get-EXOCASMailbox | Select PRimarySMTPAddress,OWAEnabled,ImapEnabled,PopEnabled,MAPIEnabled,EwsEnabled,ActiveSyncEnabled


#Get Stats for Singe Mailbox
Get-MailboxStatistics -Identity Administrator | fl DisplayName, ItemCount, TotalItemSize, LastLogonTime

 

 

 

 


#Get Stats for All Mailboxes 
Get-Mailbox | Get-Mailboxstatistics | Select Displayname,itemcount,totalitemsize,lastlogontime

#Get Mailbox Plan to See Exchange Settings 

Get-MailboxPlan -Identity ExchangeOnlineEnterprise | Select UserPrincipalName, RetainDeletedItemsFor,ArchiveQuota,ArchiveWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,RecoverableItemsQuota,RecoverableItemsWarningQuota,CalendarLoggingQuota,LitigationHoldDuration

Connect-EXO.PNG
Get-EXOCAS.PNG
Stats.PNG
stats2.PNG
Mailbox-Plan.PNG