We are in the process of upgrading to Exchange 2007. When a user is created our tech desk has not done a good job of creating the mailbox in the correct store. So I am doing a cleanup now to move mailboxes to their correct stores. Going forward I would like to have a powershell script run weekly to move and misconfigured mailboxes. Here is the command
Get-Mailbox -OrganizationalUnit "SAIUsers" -Filter "Department -eq 'IS'" |Move-Mailbox -TargetDatabase "ISStore"
My questions are
1. Will this work?
2. Can that be piped to a log file of some kind?
3. What would you recommend for Users that do not have the department attribute set? I need to get a list so i can send it to the tech desk for fixing.
The exchange serves are running on 2008 boxes and the domain is 2003.