Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Time remaining for a mailbox move

$
0
0

Hi All,

I am using Primal form to monitor my mailbox moves and have the following script

$outputbox.text = get-moverequest| get-moverequeststatistics |Sort-Object PercentComplete -Descending | ft displayname, @{label=" % "; expression="percentcomplete"},@{l="Size";e={$_.Totalmailboxsize.ToString().SubString(0,($_.totalmailboxsize.ToString().IndexOf("MB")))}} ,@{l="Moved";e={$_.BytesTransferred.ToString().SubString(0,($_.BytesTransferred.ToString().IndexOf("MB")))}},@{l="Rate";e={$_.BytesTransferredPerMinute.ToString().SubString(0,($_.BytesTransferredPerMinute.ToString().IndexOf("MB")))}}  ,statusdetail  -AutoSize| Out-String

I would like to add another column that gives me an estimated remaining time for the move. I can do the maths easily enough but don't know how to write it as a simple script that could be added as an extra column in the form

Any ideas?

TIA

Andy


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>