Get-UserProfile.ps1xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration> <ViewDefinitions> <View> <Name>Get-UserProfile</Name> <ViewSelectedBy> <TypeName>Get-UserProfile</TypeName> </ViewSelectedBy> <TableControl> <!--Delete the AutoSize node if you want to use the defined widths.--> <AutoSize /> <TableHeaders> <TableColumnHeader> <Label>ComputerName</Label> <Width>15</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>LastUseTime</Label> <Width>22</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>LocalPath</Label> <Width>27</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Loaded</Label> <Width>9</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>Roaming</Label> <Width>10</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>UserName</Label> <Width>22</Width> <Alignment>left</Alignment> </TableColumnHeader> <TableColumnHeader> <Label>SID</Label> <Width>47</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>ComputerName</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>LastUseTime</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>LocalPath</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Loaded</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Roaming</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>UserName</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>SID</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |