Progress bar for mailbox moves RRS feed

  • Question

  • Hi,

    I am in the process of moving mailboxes to O365 in batches via a powershell script.

    To monitor the moves I use this script:-

    While ($moveRequests = Get-MoveRequest) {
    Start-Sleep 300
    Write-Host $a -ForegroundColor Green
    get-moverequest -status "Completed" | remove-moverequest -confirm:$false -warningaction "SilentlyContinue"
    get-moverequest -status "InProgress" | get-moverequest| Sort-Object PercentComplete -Descending | ft -auto

    I would like to change this so it uses a progress bar. I have found this script and would like to know how to amend it to show the overall progress of the mailbox moves

    for ($a=1; $a -lt 100; $a++) {
      Write-Progress -Activity "Working..." -PercentComplete $a -CurrentOperation "$a% complete" -Status "Please wait."  
      Start-Sleep 1

    Is this possible? if so how?



    • Edited by UKMorite Wednesday, March 12, 2014 2:33 PM
    Wednesday, March 12, 2014 2:32 PM


  • http://technet.microsoft.com/en-us/library/ff730943.aspx

    can be helpfull in your case

    • Proposed as answer by Maffiow Wednesday, March 12, 2014 2:58 PM
    • Marked as answer by Bill_Stewart Monday, May 19, 2014 9:57 PM
    Wednesday, March 12, 2014 2:57 PM