Bharath Suresh
Bharath Suresh

Reputation: 473

Firewall rule through group policy not detected

I created a firewall rule to block inbound port 138 using the local group policy editor (image 1 and image 2). When I run the Get-NetFirewallRule -DisplayName "" powershell command, I am not able to get the rule details though (Image 3). But when I try to query a rule that I did created using the windows firewall console, it works properly. port 138 through local group policy port 138 rule details powershell command

Is there any reason why the rule created through the Group policy was not detected whereas the one created through the windows firewall settings console was being detected?

Upvotes: 0

Views: 549

Answers (1)

js2010
js2010

Reputation: 27576

Instead of

Get-NetFirewallRule -DisplayName "" 

do

Get-NetFirewallRule -DisplayName 138_block

Upvotes: 0

Related Questions