Get-UserProcess.ps1xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration> <ViewDefinitions> <View> <Name>Get-UserProcess</Name> <ViewSelectedBy> <TypeName>Get-UserProcess</TypeName> </ViewSelectedBy> <TableControl> <!--Delete the AutoSize node if you want to use the defined widths.--> <AutoSize /> <TableHeaders> <TableColumnHeader> <Label>Name</Label> <Width>18</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>ProcessId</Label> <Width>12</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Owner</Label> <Width>18</Width> <Alignment>left</Alignment> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <!-- By default the entries use property names, but you can replace them with scriptblocks. <ScriptBlock>$_.foo /1mb -as [int]</ScriptBlock> --> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>ProcessId</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Owner</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |