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

Bytestransferred to GB

$
0
0

Hi All,

I have a script that shows me the bytestransferred and the bytestransferredperminute in a form but it also shows the bytes in brackets.

How can I get rid of the bytes portion?

I have tried:-

$outputbox.text = get-moverequest| get-moverequeststatistics |Sort-Object PercentComplete -Descending | ft displayname, @{label=" % "; expression="percentcomplete"}, statusdetail, @{label=" moved "; expression={S_.bytestransferred.value.toGB}},@{label=" Rate"; expression={$_.bytestransferredperminute.value.toGB}} -AutoSize | Out-String

This didn't give me any value in the 2 columns (Rate & Moved)

What am I doing wrong?

TIA

Andy



Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images