My Exchange Online PowerShell Commands

Commands

Get Mailboxes size

PS C:\ > Get-MailBox | Get-MailboxStatistics | select DisplayName,Totalitemsize

Display user mailbox informations

PS C:\ > Get-Mailbox -Identity "My User"
PS C:\ > Get-Mailbox -Identity "My User" | Select-Object DisplayName, Lit*

Managing clutter

PS C:\ > Get-Clutter -Identity user1
PS C:\ > Set-Clutter -Identity user1 -Enable $False

Get every primary address

PS C:\ > Get-Recipient -ResultSize unlimited | Select-Object PrimarySMTPAddress

Get Mailbox Permission

PS C:\ > Get-MailboxPermission contact@shebangthedolphins.net

Get users list

PS C:\ > Get-User

Assign the user admin Full Access permission to contact's mailbox

PS C:\ > Add-MailboxPermission -Identity "contact" -user "admin" -AccessRights FullAccess

Get emails addresses list

PS C:\ >  Get-MsolUser | Where-Object {$_.islicensed} | Select-Object UserPrincipalName | Sort-Object UserPrincipalName
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :