Reputation: 473
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.
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
Reputation: 27576
Instead of
Get-NetFirewallRule -DisplayName ""
do
Get-NetFirewallRule -DisplayName 138_block
Upvotes: 0