concept custom column in category powershell

appears as: custom columns, custom column
Learn PowerShell in a Month of Lunches

This is an excerpt from Manning's book Learn PowerShell in a Month of Lunches.

  • Next we’re using a special hash table to create a custom column that will be labeled VM(MB). That’s the first part up to the semicolon, which is a separator. The second part defines the value, or expression, for that column by taking the object’s normal VM property and dividing it by 1 MB. The slash is PowerShell’s division operator, and PowerShell recognizes the shortcuts KB, MB, GB, TB, and PB as denoting kilobyte, megabyte, gigabyte, terabyte, and petabyte, respectively.