Permission_Format.ps1xml
<?xml version="1.0" encoding="utf-8"?>
<Configuration> <ViewDefinitions> <View> <Name>Permission.TargetPermission</Name> <ViewSelectedBy> <TypeName>Permission.TargetPermission</TypeName> </ViewSelectedBy> <TableControl> <AutoSize/> <TableHeaders> <TableColumnHeader> <Label>Path</Label> <Width>16</Width> </TableColumnHeader> <TableColumnHeader> <Label>NetworkPaths</Label> <Width>16</Width> </TableColumnHeader> <TableColumnHeader /> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Path</PropertyName> </TableColumnItem> <TableColumnItem> <Label>NetworkPaths</Label> <ScriptBlock>$This.NetworkPaths.Item.Path</ScriptBlock> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>Permission.Parent</Name> <ViewSelectedBy> <TypeName>Permission.Parent</TypeName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <Label>Parent</Label> <ScriptBlock>$This.Parent.Path</ScriptBlock> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>Permission.Item</Name> <ViewSelectedBy> <TypeName>Permission.Item</TypeName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Item</PropertyName> <PropertyName>Access</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> </ViewDefinitions> </Configuration> |