Win7 firewall list von
hallo
in Win7 kann ich mit dem Befehl
netsh advfirewall firewall show rule status=enabled name=all
zeige alle Rules, die aktiv sind
wie kann ich alle auflisten, die den Status „Block“ haben?
danke
t
in Win7 kann ich mit dem Befehl
netsh advfirewall firewall show rule status=enabled name=all
zeige alle Rules, die aktiv sind
wie kann ich alle auflisten, die den Status „Block“ haben?
danke
t
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 307636
Url: https://administrator.de/contentid/307636
Ausgedruckt am: 26.11.2024 um 14:11 Uhr
7 Kommentare
Neuester Kommentar
Hi.
you should definitly use powershell for this
The netsh > advfirewall context is deprecated and will be removed from the next versions of Windows. So hurry up and use modern scripting languages.
Regards
you should definitly use powershell for this
Get-NetFirewallRule -Action Block
Regards
This cmdlet is only supported on win8.x and above.
In win7 you could pipe the content to findstr and search for the term 'Block' to filter out the rules you want.
In win7 you could pipe the content to findstr and search for the term 'Block' to filter out the rules you want.
You could also use netsh within Powershell to filter out the rules like this.
I have put in the german translation for analysing the output.
I have put in the german translation for analysing the output.
((netsh advfirewall firewall show rule name=all status=enabled) | out-string ) -split '(?=Regelname)' | ?{$_ -match 'Aktion:\s+Blockieren'}
And i extra did the translation for nothing, ohh no
Have a nice sunday.
highload
Have a nice sunday.
highload