Viewing Windows Firewall settings from the command line and a GUI

12

4

Is it possible to view Windows firewall settings from the command line?

In addition how can I check the advanced Windows Firewall settings in a GUI?

Mark Dark

Posted 2012-08-31T00:41:04.407

Reputation: 121

Answers

10

To view the Windows Firewall settings from the command line, type:

netsh advfirewall firewall

This will open a menu with different settings, including advanced settings (like setting rules).

Windows Firewall settings in command-line

More information about Netsh AdvFirewall Firewall Commands (Windows Server online library).

amiregelz

Posted 2012-08-31T00:41:04.407

Reputation: 6 965

5

There's usually a shortcut somewhere in the Admin/System Tools folder of your Start Menu that will access Windows Firewall with the Advanced Security GUI.

Alternatively you can type wf.msc in an administrative Command Prompt.

The command netsh advfirewall (or netsh firewall in Windows XP) will let you view/work with firewall settings at the command line.

kreemoweet

Posted 2012-08-31T00:41:04.407

Reputation: 3 884

4

powershell (windows 10):

get-netfirewallrule -all
get-netfirewallrule -policystore configurableservicestore -all

Not sure how to see the rules whose names start with "@" in the gui. Netsh can't view alternate policystores, or view firewall rules by owner like powershell can.

js2010

Posted 2012-08-31T00:41:04.407

Reputation: 321

1I don't understand why this got downvoted. It was exactly what I was looking for. – Skrymsli – 2019-07-16T22:06:10.240

3-1. I'm winning. – js2010 – 2019-08-08T16:58:26.440