formats/topProcessMemoryUnit.format.ps1xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
Format type data generated 11/11/2020 16:45:49 by PROSPERO\Jeff
 
This file was created using the New-PSFormatXML command that is part
of the PSScriptTools module.
https://github.com/jdhitsolutions/PSScriptTools
-->
<Configuration>
  <ViewDefinitions>
    <View>
      <!--Created 11/11/2020 16:45:49 by PROSPERO\Jeff-->
      <Name>default</Name>
      <ViewSelectedBy>
        <TypeName>topProcessMemoryUnit</TypeName>
      </ViewSelectedBy>
      <GroupBy>
        <!--
            You can also use a scriptblock to define a custom property name.
            You must have a Label tag.
            <ScriptBlock>$_.machinename.toUpper()</ScriptBlock>
            <Label>Computername</Label>
 
            Use <Label> to set the displayed value.
-->
        <PropertyName>Computername</PropertyName>
        <Label>Computername</Label>
      </GroupBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <!--
            By default the entries use property names, but you can replace them with scriptblocks.
            <ScriptBlock>$_.foo /1mb -as [int]</ScriptBlock>
-->
              <ListItem>
                <Label>ProcessID</Label>
                <PropertyName>ProcessID</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Name</Label>
                <PropertyName>Name</PropertyName>
              </ListItem>
              <ListItem>
                <Label>WS(MB)</Label>
                <ScriptBlock>[math]::round($_.ws/1MB,2)</ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>PctUsed</Label>
                <PropertyName>PctUsed</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Owner</Label>
                <PropertyName>Owner</PropertyName>
              </ListItem>
              <ListItem>
                <Label>Commandline</Label>
                <PropertyName>Commandline</PropertyName>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
  </ViewDefinitions>
</Configuration>