How to clear mailbox by exadmin in exchange 2010
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
沒有留言:
張貼留言