RSS

How to clear mailbox by exadmin in exchange 2010

16 Jul

1-assign the permission to exadmin

new-managementroleassignment “xxxx” –role “mailbox import export” –user exadmin

2-check the mailbox folder size

get-mailbox xxxx | get-mailboxfolderstatistics | ft foldertype,foldersize

3-delete all messages

get-mailbox xxxx | export-mailbox –deletecontent –deleteassociatedmessages –globalcatalog hq-dca

4-result

5-check the mailbox folder size again


Done.

Advertisements
 
 

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: