You often need to manage user mailboxes the way you do user
accounts. Some of the management tasks are intuitive and others aren’t.
If you have questions, be sure to read the sections that follow.
Whether you are working with on-premises Exchange or Exchange
Online, you can use bulk editing techniques to work with multiple user
mailboxes at the same time. To select multiple user mailboxes not in
sequence, hold down the Ctrl key and then tap or click the left mouse
button on each user mailbox you want to select. To select a series of
user mailboxes, select the first mailbox, hold down the Shift key, and
then tap or click the last mailbox.
The actions you can perform on multiple resources depend on the
types of recipients you’ve selected. The actions you can perform on
multiple user mailboxes include the following:
-
Updating contact information, organization information, or custom attributes
-
Changing mailbox quotas or deleted item retention settings
-
Enabling or disabling Outlook Web App, POP3, IMAP, MAPI, or ActiveSync
-
Managing policy for Outlook Web App, ActiveSync, Address Books, Retention, Role Assignment, or Sharing
-
Enabling or disabling mailbox archives
-
Moving mailboxes to another database
Although you cannot bulk edit room or equipment mailboxes, you can perform these actions on shared mailboxes.
Viewing current mailbox size, message count, and last logon
You
can use Exchange Admin Center to view the last logon date and time, the
mailbox size, and how much of the total mailbox quota has been used by
completing these steps:
-
Select Recipients in the feature pane and then select Mailboxes.
-
Double-tap or double-click the mailbox with which you want to work.
-
On the Mailbox Usage page, review the Last Logon text box to see the last logon date and time (see Figure 1). If a user hasn’t logged on to the mailbox, you can’t get mailbox statistics and will get an error when you view this page.
-
Under the last logon time, notice the mailbox usage statistics,
depicted in a bar graph and numerically as a percentage of the total
mailbox quota that has been used.
If you want to view similar information for all mailboxes on a
server, the easiest way is to use the Get-MailboxStatistics cmdlet with
the -Server or -Database parameter. Getting statistics for multiple mailboxes
shows examples using Get-MailboxStatistics. Use the -Archive parameter
to return mailbox statistics for the archive mailbox associated with a
specified mailbox.
When you are working with Exchange Management Shell, the standard
output won’t necessarily provide all the information you are looking
for. Often, you need to format the output as a list or table using
Format-List or Format-Table, respectively, to get the additional
information you are looking for. Format-List is useful when you are
working with a small set of resources or want to view all the
properties that are available. Once you know what properties are
available for a particular resource, you can format the output as a
table to view specific properties. For example, if you format the
output of Get-MailboxStatistics as a list, you see all the properties
that are available for mailboxes, as shown in this example and sample
output:
get-mailboxstatistics -identity "pocket-consulta\erika" | format-list
AssociatedItemCount : 21622
DeletedItemCount : 1211
DisconnectDate :
DisplayName : Erik Andersen
ItemCount : 20051
LastLoggedOnUserAccount : NT AUTHORITY\SYSTEM
LastLogoffTime : 5/17/2015 11:51:42 PM
LastLogonTime : 5/17/2015 12:14:22 PM
LegacyDN : /O=FIRST ORGANIZATION/OU=EXCHANGE ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=ERIK ANDERSEN
MailboxGuid : b7fb0ca8-936b-410f-a2a1-59825eebbdfe
MailboxType : Private
ObjectClass : Mailbox
StorageLimitStatus :
TotalDeletedItemSize : 1927 KB (1927,535 bytes)
TotalItemSize : 191121.2 KB (191,121,225 bytes)
Database : Customer Service Primary
ServerName : MAILSERVER92
DatabaseName : Customer Service Primary
IsQuarantined : False
IsArchiveMailbox : False
IsMoveDestination : False
DatabaseIssueWarningQuota : 1.899 GB (2,039,480,320 bytes)
DatabaseProhibitSendQuota : 2 GB (2,147,483,648 bytes)
DatabaseProhibitSendReceiveQuota : 2.3 GB (2,469,396,480 bytes)
Identity : b7fb0ca8-936b-410f-a2a1-59825eebbdfe
MapiIdentity : b7fb0ca8-936b-410f-a2a1-59825eebbdfe
OriginatingServer : mailserver92.pocket-consultant.com
IsValid : True
ObjectState : Unchanged
Once you know the available properties, you can format the output as
a table to get exactly the information you want to see. The following
example gets information about all the mailboxes in the Engineering
Primary database and formats the output as a table:
Get-MailboxStatistics -Database 'Engineering Primary' | format-table
DisplayName, TotalItemSize, TotalDeletedItemSize, Database, ServerName