NetDebug.Format.ps1xml

 
<Configuration>
  <ViewDefinitions>
    <View>
      <Name>DefaultView</Name>
      <ViewSelectedBy>
        <TypeName>TestNetFlowResult</TypeName>
      </ViewSelectedBy>
      <ListControl>
        <ListEntries>
          <ListEntry>
            <ListItems>
              <ListItem>
                <PropertyName>ComputerName</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>RemoteAddress</PropertyName>
              </ListItem>
              <ListItem>
                <Label>RemotePort</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.RemotePort) -ne 0
                  </ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>RemotePort</PropertyName>
               </ListItem>
               <ListItem>
                <Label>AllNameResolutionResults</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.Detailed)
                  </ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>
                  $output = "";
                  foreach($Result in $_.AllNameResolutionResults) {
                      $output += $Result.Address + "`n";
                  };
                  $output.Trim("`n");
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>MatchingIPsecRules</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    (($_.RemotePort -ne 0) -and ($_.Detailed))
                  </ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>
                  $output = "";
                  foreach($Result in $_.MatchingIPsecRules) {
                      $output += $Result.DisplayName + "`n";
                  };
                  $output.Trim("`n");
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    (($_.RemotePort -ne 0) -and ($_.Detailed))
                  </ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>NetworkIsolationContext</PropertyName>
              </ListItem>
              <ListItem>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ((($_.RemotePort -ne 0) -and ($_.Detailed)) -and (!$_.IsAdmin))
                  </ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>IsAdmin</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>InterfaceAlias</PropertyName>
              </ListItem>
              <ListItem>
                <PropertyName>SourceAddress</PropertyName>
              </ListItem>
              <ListItem>
                <Label>NetRoute (NextHop)</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    $_.Detailed
                  </ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>
                   $_.NetRoute.NextHop
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <PropertyName>PingSucceeded</PropertyName>
              </ListItem>
              <ListItem>
                <Label>PingReplyDetails (RTT)</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.PingReplyDetails -ne $null)
                  </ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>
                  $_.PingReplyDetails.RoundTripTime.ToString() + " ms";
                </ScriptBlock>
              </ListItem>
              <ListItem>
                <Label>TcpTestSucceeded</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.RemotePort) -ne 0
                  </ScriptBlock>
                </ItemSelectionCondition>
                <PropertyName>TcpTestSucceeded</PropertyName>
              </ListItem>
        <ListItem>
        <Label>Message</Label>
        <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.Message) -ne ""
                  </ScriptBlock>
 </ItemSelectionCondition>
                <PropertyName>Message</PropertyName>
              </ListItem>
        <ListItem>
        <Label>Response</Label>
        <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.Message) -ne ""
                  </ScriptBlock>
  </ItemSelectionCondition>
                <PropertyName>Response</PropertyName>
              </ListItem>
              <ListItem>
        <Label>Transport</Label>
        <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.Message) -ne ""
                  </ScriptBlock>
  </ItemSelectionCondition>
                <PropertyName>Transport</PropertyName>
              </ListItem>
              <ListItem>
                <Label>TraceRoute</Label>
                <ItemSelectionCondition>
                  <ScriptBlock>
                    ($_.TraceRoute -ne $null)
                  </ScriptBlock>
                </ItemSelectionCondition>
                <ScriptBlock>
                  $output = "";
                  foreach($Result in $_.TraceRoute) {
                      $output += $Result + "`n";
                  };
                  $output.Trim("`n");
                </ScriptBlock>
              </ListItem>
            </ListItems>
          </ListEntry>
        </ListEntries>
      </ListControl>
    </View>
    <View>
      <Name>TableView</Name>
      <ViewSelectedBy>
        <TypeName>TestNetFlowResult</TypeName>
      </ViewSelectedBy>
      <TableControl>
        <TableHeaders>
          <TableColumnHeader>
            <Width>15</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>10</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>30</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>20</Width>
          </TableColumnHeader>
          <TableColumnHeader>
           <Label>PingReplyDetails (RTT)</Label>
            <Width>25</Width>
          </TableColumnHeader>
          <TableColumnHeader>
            <Width>35</Width>
          </TableColumnHeader>
        </TableHeaders>
        <TableRowEntries>
          <TableRowEntry>
            <TableColumnItems>
              <TableColumnItem>
                <PropertyName>ComputerName</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>RemotePort</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>RemoteAddress</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>PingSucceeded</PropertyName>
              </TableColumnItem>
              <TableColumnItem>
                <scriptblock>
                     $_.PingReplyDetails.RoundTripTime.ToString() + " ms";
                </scriptblock>
              </TableColumnItem>
              <TableColumnItem>
                <PropertyName>TcpTestSucceeded</PropertyName>
              </TableColumnItem>
            </TableColumnItems>
          </TableRowEntry>
        </TableRowEntries>
      </TableControl>
    </View>
  </ViewDefinitions>
</Configuration>