Skip to content

Conversation

@Keith-Mange
Copy link
Contributor

No description provided.

@Keith-Mange Keith-Mange requested review from daschott and sbangari March 2, 2022 17:18
cd firewall
Get-NetFirewallRule -PolicyStore ActiveStore >> firewall.txt
reg.exe query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy /s > fwpol.txt
reg.exe query HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall /s > gppol.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line produces an empty file gppol.txt for me. Can't find this path in the registry. It could be my environment though?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I did a bunch of output on mine.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my experience, it will only have an output if rules have been applied through group policy. This is typically through some IT management software.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it on Windows Client and Windows Server, but either way if it worked on other machines and depends on group policy LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants