Simpatie.ro - matrimoniale
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.
Nou pe simpatie:
Anne98 pe Simpatie
Femeie
25 ani
Buzau
cauta Barbat
27 - 52 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[WINDOW] Check Firewall Rule Creation Date

Pagini: 1 Moderat de TRaP, TonyTzu
#1
Mrrrr
AdMiN
Postari: 2390
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. https://superuser.com/questions/747184/ ... d-using-po
Source for 2. https://www.tenforums.com/antivirus-fir ... ost1225462


_______________________________________


 
   
Pagini: 1  
Mergi la