Win7 firewall list von

Mitglied: AtoAto

AtoAto (Level 1)

19.06.2016 um 07:35 Uhr, 1250 Aufrufe, 7 Kommentare

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
Mitglied: 129813
19.06.2016, aktualisiert um 11:45 Uhr
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
Mitglied: AtoAto
19.06.2016 um 11:00 Uhr
thx but im running win7 on and:

The term 'Get-NetFirewallRule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was...

br
Mitglied: 129813
19.06.2016, aktualisiert um 11:46 Uhr
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.
Mitglied: 129813
19.06.2016, aktualisiert um 11:31 Uhr
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.
Mitglied: AtoAto
19.06.2016 um 11:37 Uhr
awesome, it works

((netsh advfirewall firewall show rule name=all status=enabled) | out-string ) -split 'Rule Name' | ?{$_ -match 'Action:\s+Block'} >c:\Block_Rule.txt

thx
br
Mitglied: 129813
19.06.2016, aktualisiert um 11:41 Uhr
And i extra did the translation for nothing, ohh no
Have a nice sunday.

highload
Mitglied: AtoAto
19.06.2016 um 12:00 Uhr
you dont have to worry at all, ;)
have a great weekend too
Titel: Win7 firewall list von
Content-ID: 307636
Art des Inhalts: Frage
Ausgedruckt am: 05.04.2020 um 06:42:09 Uhr
URL: https://administrator.de/contentid/307636