views:

603

answers:

1

I've noticed when I pull up exchange management console, it shows mailboxes which have the "Recipient Type Details" as Legacy Mailboxes.

How do i go about querying which ones are legacy, user or linked mailboxes?

I've tried get-mailbox -identity | select deleteditemflags but that doesn't seem to work.

thanks in advance

A: 

This will get you all Legacy or Linked mailboxes:

Get-Mailbox -resulteSize unlimited -RecipientTypeDetails LegacyMailbox,LinkedMailbox

For just one user:

Get-Mailbox -Identity userName -RecipientTypeDetails LegacyMailbox,LinkedMailbox

EDIT:

# get all mailboxes name and type

Get-Mailbox | Format-Table Name,RecipientTypeDetails

Shay Levy
How do you filter out users who have been tombstoned (marked for deletion) for later purging?
phill
Disabled mailboxes won't show up in the results.
Shay Levy