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

  1. Open the Exchange Management Console.
  2. Navigate to "Recipients" > "Mailboxes".
  3. In the "Mailboxes" pane, click on "Filter" and select "Inactive Mailboxes" from the drop-down menu.
  4. Click "Apply" to apply the filter.
  5. You will see a list of inactive mailboxes, including their display name, alias, and mailbox status.

Method 2: Using the Exchange Management Shell

  1. Open the Exchange Management Shell.
  2. 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

  1. Open PowerShell.
  2. 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

  1. Open PowerShell.
  2. 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".