How to get inactive mail box details in exchange 2013
To retrieve inactive mailbox details in Exchange 2013, you can use the following methods:
Method 1: Using the Exchange Management Console
- Open the Exchange Management Console.
- Navigate to "Recipients" > "Mailboxes".
- In the "Mailboxes" pane, click on "Filter" and select "Inactive Mailboxes" from the drop-down menu.
- Click "Apply" to apply the filter.
- You will see a list of inactive mailboxes, including their display name, alias, and mailbox status.
Method 2: Using the Exchange Management Shell
- Open the Exchange Management Shell.
- Run the following command to retrieve a list of inactive mailboxes:
Get-Mailbox -InactiveMailboxOnly -ResultSize Unlimited
This command will return a list of inactive mailboxes, including their display name, alias, and mailbox status.
Method 3: Using PowerShell
- Open PowerShell.
- Run the following command to retrieve a list of inactive mailboxes:
Get-Mailbox -Filter {RecipientType -eq "Mailbox" -and IsInactiveMailbox -eq $true} -ResultSize Unlimited
This command will return a list of inactive mailboxes, including their display name, alias, and mailbox status.
Method 4: Using the Exchange PowerShell cmdlet
- Open PowerShell.
- Run the following command to retrieve a list of inactive mailboxes:
Get-MailboxStatistics -InactiveMailboxOnly -ResultSize Unlimited
This command will return a list of inactive mailboxes, including their display name, alias, and mailbox status.
Note: The Get-MailboxStatistics
cmdlet returns more detailed information about the inactive mailboxes, including the last logon time, last logoff time, and the number of messages in the mailbox.
You can also use the Get-Mailbox
cmdlet with the -Filter
parameter to retrieve inactive mailboxes based on specific criteria, such as the mailbox status, display name, or alias. For example:
Get-Mailbox -Filter {RecipientType -eq "Mailbox" -and IsInactiveMailbox -eq $true -and DisplayName -like "*old*"} -ResultSize Unlimited
This command will return a list of inactive mailboxes with a display name that contains the string "old".