Forum Discussion

tolinrome's avatar
tolinrome
Level 4
11 years ago

Powershell and job history

Hello, I'm trying to find a way in which I can run the Powershell command "Get-BEJobHistory" on remote machines and have the value for "TotalDataSizeBytes" changed to GB instead. I can easily run  ...
  • pkh's avatar
    11 years ago

    To convert bytes to GB in Powershell, just divide the value by 1GB, e.g.

    $bytes = 123455758625

    $gb = $bytes/1GB