How do I disable Windows Firewall via command line?

This article discusses how to disable Window Firewall from a command line interface.

It is recommended to disable Windows Firewall during system configuration.

Open Windows Command Prompt

  1. Open command prompt using one of the following methods:
    1. Windows key + R —> type cmd —> click OK.
    2. Star menu —> type run and open applet —> type cmd —> click OK.

Disable Windows Firewall

  1. Disable Windows Firewall by running the following commands:
netsh advfirewall set domainprofile state off
netsh advfirewall set privateprofile state off
netsh advfirewall set publicprofile state off

Verification

Run the following command to check the current state (ON or OFF) for all three firewall profiles:

netsh advfirewall show allprofiles state

Domain Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Private Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Public Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Ok.