I asked this question here: http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_26953774.html
But just realised that I didn't get the full answer I was looking for! I need to know how to run the commands only on US servers.
Sometimes our support teams accidentally delete the wrong AD account when users leave our company and their mailboxes are set to a 'disconnected' state within our Exchange 2007 environment.
In order to find them again, we need to locate the disconnected mailbox from Exchange. This has two issues:
1. We need to run the 'clean-mailboxdatabase' command to update the names of disconnected mailboxes in a particular db
2. We can only search by each mailbox db in turn
I would like to do the following
a) Run a command that would run clean-mailboxdatabase on all US Exchange servers
b) Run a command that would 'get' all disconnected mailboxes on US Exchange databases
Our Exchange servers are named in the format, region-mbx1, e.g. US-Mbx1, EMEA-Mbx1, APAC-Mbx1.
Does anyone know how I can do this?
Secondly, is there a disadvantage to running clean-mailbox on all databases on a given server at the same time?