Running progress bar on a mailbox move

Hi all,

In the example below I will move the "Tony Smith" mailbox to the "Contoso" database:

New-MoveRequest -Identity tony.smith@contoso.com' -TargetDatabase "Contoso" -BadItemLimit 100 AcceptLargeDataLoss

 

What command can I run to monitor the "Tony Smith" mailbox move so it displays a running progress bar until it reaches 100% complete?

 

All help will be highly appreciated.

 

Thank you

July 14th, 2015 1:26am

Hi 

The get-moverequeststatistics cmdlet will show you displayname, status, total mailbox and archive size, and percent complete by default. Again, you can get much more information by specifying values you want to view by piping output to table (FT) or list (FL) format.

When you  have a series of moves running, you can  use the following cmdlet string to keep an eye on things.

An example below

get-content .\\moves.txt | get-moverequest | get-moverequeststatistics | ft alias, statusdetail, percentcomplete, bytestrans* -auto

That will give me an auto formatted table that lists the alias, status detail, percent complete, total bytes transferred, and bytes transferred per minute for each running move.

Free Windows Admin Tool Kit Click here and download it now
July 14th, 2015 2:24am

Hello

tip:

get-MoveRequest -Identity a |Get-MoveRequestStatistics or combinate write-progress

or user from script map MoveMailbox.ps1

July 14th, 2015 2:32am

Hi,

You can get a GUI progress bar using what Sneff has mentioned. But that is not given out of the box for a reason. And the best way to monitor is by using the available options in EAC or PowerShell as Sathish shared.

Keeping it this way allows you to move multiple mailboxes in the background without any dependency on the current session or client that initiated the move. In earlier Ex2003 you need to be online logged on to the server session to monitor and continue with the progress.

Now you can script to trigger emails too by scanning the current progress using Get-MailboxMoveStatistics and Send-EmailMessage. You can logoff as well. Someone else can pickup your job and see what is running what is being moved.

Microsoft Exchange Server 2013 introduces the concept of batch moves and migration endpoints.

Batch moves architecture in Exchange 2013 features the following capabilities:

  • Ability to move multiple mailboxes in large batches.
  • Email notification during move with reporting.

  • Automatic retry and automatic prioritization of moves.

  • Primary and personal archive mailboxes can be moved together or separately.

  • Option for manual move request finalization, which allows you to review your move before you complete it.

  • Periodic incremental syncs to update migration changes.

Free Windows Admin Tool Kit Click here and download it now
July 14th, 2015 6:21am

Hi

Just an example of the script that can be used.

MoveUser.ps1

$user = "SatyaTest7"

New-MoveRequest -TargetDatabase DB2 -Identity $user

for ($i = 1; $i -lt 100; )
{

$i = (Get-MoveRequest $user | Get-MoveRequestStatistics).PercentCOmplete
write-progress -activity "Move in Progress $user" -status "$i% Complete:" -percentcomplete $i;

}


 Move in Progress SatyaTest7
    95% Complete:
    [ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo      ]		
July 14th, 2015 7:03am

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

Other recent topics Other recent topics