Currently I’m working on an environment where 6,000 test mailboxes are created. During test migrations all kinds of information is stored in these mailboxes. You can use Exchange Web Services to empty these mailboxes.
To empty the (test) mailboxes you need the following:
- Exchange Web Services Managed API;
- An account with enough permissions to empty the mailboxes;
- A script that does the actual plumbing.
The Managed API can be downloaded from the Microsoft website: http://www.microsoft.com/download/en/details.aspx?id=13480 and it runs on Windows 7 clients or Windows 2008 (R2) servers.
The script will logon to the mailboxes with an account that needs sufficient permissions. You can set the permissions on the Exchange CAS Server using the following commands:
Continue reading Empty a mailbox using Exchange Web Services