Monday, December 19, 2016

Scheduling a mailbox move in Exchange 2010

Remember how Exchange 2007 used to have that handy feature via the GUI that would allow you to schedule a mailbox move? Exchange 2010 seems to have done away with that. Here's how I schedule mailbox moves with Exchange 2010:

  1. Create a suspended move request via the Exchange Management Shell. Here's an example where I'm creating three move requests.

    New-MoveRequest -Identity Person1 -TargetDatabase DB1 -BadItemLimit 50 -Suspend;
    New-MoveRequest -Identity Person2 -TargetDatabase DB2 -BadItemLimit 50 -Suspend;
    New-MoveRequest -Identity Person3 -TargetDatabase DB3 -BadItemLimit 50 -Suspend;
  2. Now those people are all queued up and ready to go. We want to move them in, say, 6 hours. Enter this command which pings localhost for 21600 seconds (6 hours) then fetches a list of suspended move requests and passes them on to the Resume-MoveRequest command. Note the semicolons after each command. These execute in series, not in parallel.

    ping localhost -n 21600; Get-MoveRequest | Resume-MoveRequest;

No comments:

Post a Comment