Read time 4 minutes
In this blog, you would learn about using Exchange Online PowerShell to view information related to Microsoft 365 user mailboxes.
In this technologically advanced era, even a complicated task can be done within a few seconds. So is the case with Office 365. Admins must perform various tasks and that becomes much easier when they start using PowerShell commands. They can be used to manage, audit, view, analyze, and audit the overall functioning of the Exchange Online. Here, we will be discussing how to view the mailbox data using Exchange Online PowerShell.
But before we begin, ensure you have these two pre-requisites:
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 within a few seconds. This saves a lot more time of the users. After retrieving information, users can export it to different file formats.
Nicely written and very informative blog. It helps the Office 365 users. Thanks for this.