Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
deea_printesa pe Simpatie.ro
Femeie
24 ani
Dolj
cauta Barbat
24 - 48 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOW] Check Firewall Rule Creation Date Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
I found 2 ways of doing this:

1. Using PowerShell v2 (or PowerShell ISE) and the following lines:


$Events = Get-WinEvent -ErrorAction SilentlyContinue -FilterHashtable @{logname="Microsoft-Windows-Windows Firewall With Advanced Security/Firewall"; id=2004}

ForEach ($Event in $Events) {
    $eventXML = [xml]$Event.ToXml()
    For ($i=0; $i -lt $eventXML.Event.EventData.Data.Count; $i++) {
        Add-Member -InputObject $Event -MemberType NoteProperty -Force `
            -Name  $eventXML.Event.EventData.Data[$i].name `
            -Value $eventXML.Event.EventData.Data[$i].'#text'
    }
}

$Events | Format-Table -Property TimeCreated,RuleName -AutoSize


2. Using Event Viewer:

Open Event Viewer and navigate to:
Application and Services Logs > Microsoft > Windows > Windows Firewall with Advanced Security > Firewall

You will have to manually search for the rule, but filtering the Event ID to 2004 should simplify the job a lot.
Then at the bottom of Event Viewer simply select Details > Friendly View and go through the Event Viewer lines with your keyboard arrows.

* * * *

Source for 1.
Source for 2.


_______________________________________


pus acum 1 an
   
Pagini: 1  

Mergi la