List mailboxes based on creation date

Just a quick one liner to list mailboxes based on the date when they where created. In the example below I list all mailboxes created the last week:

Get-Mailbox -resultsize unlimited | where {$_.WhenMailboxCreated -gt (get-date).adddays(-7)} |ft Name,whenMailboxCreated -Autosize

If you want to change the number of days just edit –7 to the number of days matching your preferences.

That’s all, take care and have fun!

Advertisements

2 Responses to List mailboxes based on creation date

  1. Excellent article. Keep posting such kind of information on your page.

    Im really impressed by your blog.
    Hey there, You have performed a fantastic job. I will definitely digg
    it and in my view recommend to my friends.
    I’m sure they’ll be benefited from this site.

  2. Joe says:

    What if I need a list of mailboxes created during a specific month? For instance, I need a list of boxes created in December of this last year.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: