diff --git a/PSWinFW.psd1 b/PSWinFW.psd1 index 128309d..926927d 100644 Binary files a/PSWinFW.psd1 and b/PSWinFW.psd1 differ diff --git a/formats/FirewallEvent.Format.ps1xml b/formats/FirewallEvent.Format.ps1xml new file mode 100644 index 0000000..223ff5a --- /dev/null +++ b/formats/FirewallEvent.Format.ps1xml @@ -0,0 +1,75 @@ + + + + + FirewallEvent + + PSWinFW.Log.Event + + + + + 10 + + + 8 + + + 5 + + + 4 + + + + + 5 + + + 5 + + + + 7 + + + + + + + Date + + + Time + + + Action + + + Protocol + + + SourceIP + + + DestinationIP + + + SourcePort + + + DestinationPort + + + Size + + + Path + + + + + + + + \ No newline at end of file diff --git a/public/Get-PSFirewallLog.ps1 b/public/Get-PSFirewallLog.ps1 index e55e033..d406ee3 100644 --- a/public/Get-PSFirewallLog.ps1 +++ b/public/Get-PSFirewallLog.ps1 @@ -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 } }