If you want to turn off the Windows Firewall, there are three methods. One is using the GUI which is the method that takes the most time, the other two methods are faster and using PowerShell and command prompt.

Turning Off Firewall Using PowerShell

On the PowerShell, execute the following command. This will turn off your firewall.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Turning Off Firewall Using Windows Command Prompt

Open the command prompt and execute the following command:

netsh advfirewall set allprofiles state off
How to Turn Off Windows Firewall Using PowerShell and Command Prompt
Avatar

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.

One thought on “How to Turn Off Windows Firewall Using PowerShell and Command Prompt

  • Avatar
    November 2, 2017 at 10:56 am
    Permalink

    Or calling powershell in a command promt:

    powershell -command ” Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False “

    Reply

Leave a Reply

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

*