mirror of
https://github.com/Thumbscrew/PSWinFW.git
synced 2025-01-18 17:45:47 +00:00
Created format ps1xml. Needs tweaking some more.
This commit is contained in:
parent
e36487983e
commit
c7d81b75a1
BIN
PSWinFW.psd1
BIN
PSWinFW.psd1
Binary file not shown.
75
formats/FirewallEvent.Format.ps1xml
Normal file
75
formats/FirewallEvent.Format.ps1xml
Normal file
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Configuration>
|
||||
<ViewDefinitions>
|
||||
<View>
|
||||
<Name>FirewallEvent</Name>
|
||||
<ViewSelectedBy>
|
||||
<TypeName>PSWinFW.Log.Event</TypeName>
|
||||
</ViewSelectedBy>
|
||||
<TableControl>
|
||||
<TableHeaders>
|
||||
<TableColumnHeader> <!-- Date -->
|
||||
<Width>10</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader> <!-- Time -->
|
||||
<Width>8</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader> <!-- Action -->
|
||||
<Width>5</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader> <!-- Protocol -->
|
||||
<Width>4</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader/> <!-- SourceIP -->
|
||||
<TableColumnHeader/> <!-- Destination IP -->
|
||||
<TableColumnHeader> <!-- SourcePort -->
|
||||
<Width>5</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader> <!-- DestinationPort -->
|
||||
<Width>5</Width>
|
||||
</TableColumnHeader>
|
||||
<TableColumnHeader/> <!-- Size -->
|
||||
<TableColumnHeader> <!-- Path -->
|
||||
<Width>7</Width>
|
||||
</TableColumnHeader>
|
||||
</TableHeaders>
|
||||
<TableRowEntries>
|
||||
<TableRowEntry>
|
||||
<TableColumnItems>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Date</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Time</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Action</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Protocol</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>SourceIP</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>DestinationIP</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>SourcePort</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>DestinationPort</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Size</PropertyName>
|
||||
</TableColumnItem>
|
||||
<TableColumnItem>
|
||||
<PropertyName>Path</PropertyName>
|
||||
</TableColumnItem>
|
||||
</TableColumnItems>
|
||||
</TableRowEntry>
|
||||
</TableRowEntries>
|
||||
</TableControl>
|
||||
</View>
|
||||
</ViewDefinitions>
|
||||
</Configuration>
|
@ -134,6 +134,8 @@ function Get-PSFirewallLog {
|
||||
$fwEvent | Add-Member NoteProperty -Name $member.Name -Value $split[$member.Value]
|
||||
}
|
||||
|
||||
$fwEvent.pstypenames.insert(0, 'PSWinFW.Log.Event')
|
||||
|
||||
$fwEvent
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user