move-mailbox: Powershell - slow, GUI - fast
Can anyone explain this to me? I should note I can reproduce this problem. This is on an Exchange 2007 mailbox server that hosts no other application. the system is running 2008 R2. I'm testing with a single account from one DB to another on the same system (CCR system), both DBs have less than 10 mailboxes on them. If I move the mailbox using Powershell move-mailbox, my 217MB mailbox takes 55minutes. If I move the same mailbox using the GUI it takes 1minute 42 seconds. And it doesn't matter what direction the move is in. Here is the juicy part of the logs. First, Powershell: [11/9/2010 1:39:15 PM] [0] [testacct] Moving messages. [11/9/2010 2:34:03 PM] [0] [testacct] 0 items could not be moved to the target mailbox. now the GUI: [11/9/2010 2:50:19 PM] [0] [testacct] Moving messages. [11/9/2010 2:51:36 PM] [0] [testacct] 0 items could not be moved to the target mailbox. Can anyone offer a reason why this is the way that it is? The only thing I can think of is that the GUI is able to grab some kernal level threads to do the move. I should also note that I watch just about every perfmon I could find to see a difference and the way it looks for Powershell is a few very slow reads followed by a write then it repeats this action. With the GUI it seems to do a blazing read-write for all it can. Disk activitiy is like comparing the slow kid to the one hopped up on sugar and caffine. Gene
November 9th, 2010 4:11pm

Hi Gene, Does the logs in C:\Program Files\Microsoft\Exchange Server\Logging\MigrationLogs shed any light? SteveSteve Goodman Check out my Blog for more Exchange info or find me on Twitter
Free Windows Admin Tool Kit Click here and download it now
November 10th, 2010 8:55am

" Here is the juicy part of the logs. First, Powershell: [11/9/2010 1:39:15 PM] [0] [testacct] Moving messages. [11/9/2010 2:34:03 PM] [0] [testacct] 0 items could not be moved to the target mailbox. now the GUI: [11/9/2010 2:50:19 PM] [0] [testacct] Moving messages. [11/9/2010 2:51:36 PM] [0] [testacct] 0 items could not be moved to the target mailbox. " That's the logs I quoted. Up to that point in both process all steps took about 1-3 seconds. Gene
November 10th, 2010 11:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics