Table of Contents
This updated guide examines Instructions to Enable // Disable Windows Firewall with Command and organizes the essential facts, background, and practical takeaways in clear American English.
In the previous article, the Network Administrator showed you how to enable / disable the Firewall through Control Panel. In the article below, Network Administrator will show you how to enable / disable Windows Firewall with Command Prompt.
Part 1: Enable / disable Windows Firewall
To enable / disable Windows Firewall with Command Prompt, follow the steps below:
Step 1:
First open the Command Prompt. To do this, enter cmd in the Search box on the Start Menu.

Step 2:
On the search results list, right-click Command Prompt and click Run as administrator to open the Command Prompt under Admin.

Step 3:
To turn off Windows Firewall, enter the following command into the Command Prompt window:
netsh advfirewall set allprofiles state off

Step 4:
If there are no errors, the Command Prompt window will display a message with an OK message.

Step 5:
If you want to activate (reopen) Windows Firewall, follow the same steps and enter the following command into the Command Prompt window:
netsh advfirewall set allprofiles state on

Step 6:
If there are no errors, the Command Prompt window will display a message with an OK message.

2. Some other commands
Alternatively, you can use some other commands to manipulate Windows Firewall:
1. Enable / disable Firewall for the current account
If you want to enable or disable Windows Firewall for the current user account, use the following commands:
- To disable Windows Firewall:
netsh advfirewall set currentprofile state off
- To activate Windows Firewall:
netsh advfirewall set currentprofile state on
2. Firewall on Domain Network
- To disable Firewall:
netsh advfirewall set domainprofile state off
- To activate the Firewall:
netsh advfirewall set domainprofile state on
3. Firewall on Public Network
- Disable Windows Firewall:
netsh advfirewall set publicprofile state off
- Enable Windows Firewall "
netsh advfirewall set publicprofile state on
4. Firewall on Private Network
- Disable Windows Firewall:
netsh advfirewall set privateprofile state off
- Activate Windows Firewall:
netsh advfirewall set privateprofile state on
Refer to some of the following articles:
- How to block or unblock programs on Windows Firewall?
- Instructions allow applications to communicate with each other via Windows Firewall
- How to disable / enable Windows Firewall in Windows 7, 8
Good luck!
FAQ
What is Instructions to Enable // Disable Windows Firewall with Command about?
It provides a structured overview of windows firewall, explains the main context, and highlights practical takeaways for readers.
Why does this topic matter?
Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.
How should readers use this information?
Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.
Reader Comments 0
Sign in with email or Google to join the discussion.