February 15 2016

Disable Windows Firewall via CMD

It’s pretty common that in any given week, I must access a customer’s server and disable their firewall. The firewall could have been misconfigured, they could have set their Network Location to being “Public” or changed it to “Private” while having a separate set of rules for that location, whatever the case may be, Commandline is the only ticket for us.

To cut straight to it:

netsh firewall set opmode disable

or

NetSh Advfirewall set allprofiles state off

I put two different methods of turning the Firewall Off. “netsh firewall” is the old method that seems to still work and has been time tested for me, whereas Advfirewall is the new method and the supposed “right way” to do it. I on the otherhand have never found that the old way has failed, but only time will tell.



Copyright 2020. All rights reserved.

Posted February 15, 2016 by timgarrity89_a1y6u17p in category "Windows

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.