Read time 4 min
In this blog, you would learn about using Exchange Online PowerShell to view information related to Microsoft 365 user mailboxes.
Users must have Microsoft 365 administrator or Global Administrator rights to work on Exchange Online PowerShell. Once you are ready with the desired rights, follow the process.
To use the Exchange Online PowerShell, Microsoft 365 administrators must connect their Microsoft 365 accounts to the Windows PowerShell of the system. Here is the way to do that.
Running this command will open a dialogue box asking for your Microsoft 365 account login credentials (username and password). Provide them and click OK.
So, we have provided you the process for connecting to Exchange Online PowerShell above. Now, let us know how this Exchange Online PowerShell helps you get information regarding Microsoft 365 mailboxes.
In Exchange Online PowerShell, there is a Get-Mailbox cmdlet which helps to get Microsoft 365 mailbox information.
Let us know about all its uses.
Output: A summary list of all the mailboxes within the organization.
Output: A list of all the mailboxes available within the specified Organization Unit.
Output: A list of archived mailboxes in the specified Mailbox Server.
There are more uses for the Get-mailbox cmdlet like retrieving properties information from a single or multiple Microsoft 365 mailboxes. Let us go through them.
Output: All the properties of a specified user mailbox.
Output: Displays some general mailbox properties such as Name, Alias, Server Name and ProhibitSendQuota
Output: Information based on the specified properties in the command – Display Name and Litigation hold properties.
Output: Shows the specified properties – Display Name, Litigation hold properties for all the mailboxes in the organization.
Now, let us go into more detail and retrieve information related to mailbox folders in the organization using Exchange Online PowerShell commands.
Output: List of all the root folders within the specified mailbox
Output: Inbox folder of the specified user mailbox is retrieved.
Output: All the properties of the Calendar folder within the specified mailbox.
It is also possible to know about the mailbox sizes by running some cmdlets in Exchange Online PowerShell.
To get the size of a specific mailbox, you need to run this command.
Output: Information about the specified mailbox.
Also, there comes one more cmdlet which allows exporting information to a CSV file.
Export your output information after running a cmdlet to a file format like CSV using this command.
Note: Replace CSV with TXT, XML or HTML file formats in Export-CSV C:\Temp\”Exchange Online recipients.CSV” to save the information to the respective file formats.
Hence, we have learnt about multiple commands in Exchange Online PowerShell which provides users varied information regarding the user mailboxes in the organization.
By connecting PowerShell to Exchange Online and then running certain cmdlets in the Exchange Online PowerShell, you can get a lot of information related to the user mailboxes in the organization. After retrieving information, users can export it to different file formats.