How to disable the firewall command line.  Disable firewall in Windows7.  Configuring Firewall Exceptions

How to disable the firewall command line. Disable firewall in Windows7. Configuring Firewall Exceptions

On the open spaces of the local network, such a computer may appear, which interferes with you, which means that the Windows Firewall must be turned off. Naturally, you have administrator rights in the network and your actions are regulated. If so, here are the commands that can turn off the Firewall on computers within the same network. Depending on the version of the operating system, the commands will be slightly different:

For computers running on Windows 7 or higher operating system:
sc \\ computername config mpssvc start = disabled
sc \\ computername stop mpssvc
For computers running on Windows XP:
sc \\ computername config sharedaccess start = disabled
sc \\ computername stop sharedaccess
The first command turns off Windows Firewall. But the second command stops this service. It is also helpful to know what the Services tool is most often used for.

It's important to know!

If you need such actions, then keep in mind that the team does not always work out adequately. I have come across several computers where the Firewall was shutting down with an error. Thanks to this, the computer could not be seen over the network. This is especially problematic with those computers to which they are connected. After such an error, no one will be able to reach the print server - it is not on the network. You will not be able to turn on the Firewall using the appropriate window in the Control Panel. The window displays an error and does not allow you to do anything. Firewall can only be started via the console Services.

How do I disable Firewall on a client computer?

For those who are looking for information on how to disable the Firewall on their computer, I will also give the information you are looking for:

  1. Open up Control Panel
  2. In Category view, select system and safety
  3. On the left, find and click Turn Windows Firewall on or off
  4. For those types of networks () for which you need to disable the Firewall, activate the item Disable Windows Firewall.

When working with any computer, you have to pay a lot of attention to network security.

Firewall is an effective default protection tool in all versions of the Windows operating system that filters incoming traffic for threats. Typically, the firewall works as it should and does not make itself felt to the user at all.

But in some cases, protection does not work correctly, blocks useful programs and services, and you have to manually disable it or configure exceptions.

Why disable it?

This tool protects the operating system from virus, hacker and other attacks from the outside. Unlike anti-virus programs, which are designed to delete existing files, the firewall is primarily filters all traffic that enters the computer and blocks potentially dangerous files and connections on the go.

By default, all traffic from all types of connections is filtered:

  • Wired Internet;
  • Wi-Fi, Internet distribution from mobile devices, wireless modems;
  • VPN, proxy and other complex connection schemes.

If the system considers the program to be malicious, it blocks it and sends a message to the user urging him to make a final decision. The user can agree with the opinion of the system, or he can allow the activity of the program by removing the protection or adding the file to the exceptions. Firewall without user permission does nothing, but frequent conflicts between the system and a third-party software force users to either carefully configure the exclusion list or disable the firewall altogether.

Disable Windows 7 Firewall

There are several ways to turn off the firewall in Windows 7, 8 and 10, most of which are universal and work on all versions of the operating system.

How to disable in Control Panel

If everything was done right the ambassador of pressing the "OK" button the previous page will appear, only this time with a red color and a warning about disabling protection. This manual answers the question of how to turn off the firewall in all three popular versions of Windows: 7, 8 and 10, but the method is not the only one.

Firewall: how to disable it via command line?

There are several ways to use the command line in Windows:

  • By pressing the key combination "Windows + R";
  • Opening "Start" and typing cmd or cmd.exe in the search;
  • Selecting "Start - Accessories - Command Prompt".

So, how to turn off Windows 8 and 7 firewall using the command line:

  1. Enter the text "netsh advfirewall set allprofiles state off".
  2. Press the "Enter" key.

As in the case with the instructions above, this sequence of actions disables protection for all types of network connections (both home and work networks).

To turn the protection back on through the command line, it is enough to enter the same text, only at the end replacing OFF with ON.

Disabling the protection service via "msconfig"

After shutting down the system in one of the ways above, the firewall will stop working, and all incoming traffic will be processed by the remaining methods: antivirus and other software. But at the same time, the service will continue to work, responsible for the firewall and the functioning of the firewall.

Important: The msconfig service is an essential system element. Violation of its settings and configuration can lead to the most unexpected consequences that require the help of a specialist. Disabling system services is at your own risk.

Service shutdown procedure:

For the changes to take effect, you need to restart your computer - the system will prompt you to give your consent immediately. After restarting, the computer will start without a working firewall.

Shutting down the service via the services.msc command

The easiest way to start the service is to use the command line, also invoking it using the Windows + R keyboard shortcut or by typing CMD into the search.

After opening the command line, you need to:

  1. Enter the command "services.msc" and press Enter.
  2. In the window that opens, find the item "Windows Firewall" and right-click on it.
  3. In the context menu that opens, select the "Stop" item.

In this case, the operation of the protection system will only be suspended. The service will not work, but the computer does not need to be restarted.

Configuring Firewall Exceptions

Turn off often completely or removing the protection system is not required: it is enough to configure the list of exclusions so that Windows does not conflict with known problem files and programs. Exceptions allow you not to use the removal of protection and teach the firewall to bypass and skip the necessary software.

Step by step setup process:

To ensure that the program works without problems and network blocking, you should check both boxes: public networks, home and work networks. For the changes to take effect no PC reboot required.

The World Wide Web, so necessary for us, is far from a safe place. Scammers are actively distributing openly malicious or infected seemingly harmless programs via the Internet. Each of us can run into such an unpleasant surprise, the result of which is the leakage of personal information and withdrawals from bank accounts, malicious data encryption, damage system files and computer malfunction. The barrier for all of the above threats is the Windows firewall, which we will discuss in detail in our article.

Unlike conventional browser-based or stand-alone firewalls, which prevent viruses from entering the system from the outside, the firewall works both ways. It prohibits programs installed on the PC from accessing the Network without permission from the administrator or in the absence of security certificates. Simply put, if a program is suspicious and requires unreasonably large powers, it will be blocked.

This protective tool is included in all modern versions of Windows starting from XP Service Pack 2. In addition to programs, the firewall checks running services and stops them when it detects dangerous activity. A separate plus is that an experienced user can independently establish verification rules for a specific list of IP addresses, ports, network profiles.

Despite all the advantages, a firewall does not replace antivirus software, but only "stops" the activity of malicious software, so you should not rely on it entirely.

Turn on firewall in Windows 7, 8, 10

After installing or restoring Windows, its firewall is started by default. The reason for manually disabling it must be a good reason, for example, a pop-up error 0x80070422, reporting a failure of protection and a conflict of services.

There are two ways to disable (or start) the firewall in Windows 7, 8 and 10 on your own: through the command line or the control panel.

First, consider the first option, as the simplest.

Owners of ten to open the console can immediately right-click on the "Start" icon.


After a few seconds, the system will notify you of a successful shutdown: "OK".

  1. You can turn it back on with the same command, but with the on prefix: «Netsh advfirewall set allprofiles state on ".

Now let's look at option # 2.


Switching on is carried out in the reverse order. After all the steps, it is advisable to restart the computer.

Allowing programs to run through a firewall

The work of the firewall is not always correct, and it can block a completely harmless program that requires access to the Network. This often happens when installing and first launching an online game client or downloader. In the settings, you can add the program yourself to the firewall exceptions, but only if you are sure of its source.

This is done as follows:

  1. Go to the firewall exceptions menu along the path described above and click on the highlighted link.


But if the desired exe file was not found here, specify the path to it via "Overview".


After confirming these changes, it is not necessary to restart the computer.

Configuring Firewall with Advanced Security

Now it is worth mentioning an alternative way to configure the firewall, which allows, among other things, to open ports and set security policy. It contains a tool for creating new rules - firewall algorithms for working with some applications.

To get into advanced settings:



Solving firewall problems

As described above, this protection is not ideal in that it can lead to crashes and conflicts of Windows services. Also, its work consumes computer resources, significantly "squandering" the performance of weak machines. Because of this, many users turn off the firewall completely while remaining vulnerable. As a result, people who have disabled the firewall on their PC may see a message like this: "error 0x80070422 could not change some parameters."

This issue was addressed by enabling the firewall in a standard way or through Windows Update and Firewall services.

For this:


After all the manipulations, we restart the computer and analyze the result.

If the firewall is not started either in the usual way or through the services console, then the problem may lie in the infection of the computer with viruses. Use an anti-virus program (for example, Dr.Web CureIt!) And run a full scan of your computer. We also recommend using the Microsoft support link, where this problem has already been described.

In addition to the above

From our article, you learned what a Windows firewall is, why it is so important for system security, where it is located and how it is configured. By tradition, we will give you helpful advice: do not disconnect the network Windows screen unnecessarily, since it is the first and last line of defense against worms, Trojans and other spyware that gets to us from the Internet. Even when the computer is infected malware in most cases it will be blocked and will not be able to transfer data.

Hello everyone today, a small note on how to allow pings in the firewall through the command line, it may come in handy if you installed the core version of windows or Hyper-V server 2012R2. Yes, and for those people who like to automate everything in their environments, it is suitable for writing bat or cmd files that can be used when installing and configuring the server adopted in your organization. I will also teach you how to open a firewall through a cmd shell, this knowledge helped me many times, since there are situations when the mouse does not work on the server, and it is very necessary to open the coveted snap-in, because an important service can be located due to a closed port ...

Configuring the firewall from the command line

Suppose you have a server on which the operating system is installed. Windows system Server 2012 R2 on the server, according to the standard you must have ping packets open, it is clear that such things can be done and group policy and this is correct, but in my example I have a small branch (branch) and in it I need to open ports on three servers by sending such a file with a command to the manager, no special effort and knowledge is required to complete the task and configuring firewall command line would be very appropriate.

Open the command line and write the following text in it:

netsh advfirewall firewall add rule name = "ICMP Allow incoming V4 echo request" protocol = icmpv4: 8, any dir = in action = allow

As you can see, the rule worked fine, now the necessary ports should be open in our firewall. Let's check if the rule has been added.

How to start a firewall from the command line

In order to start the firewall from the command line, enter the following text in it

and in the incoming rules we see ours, which opens ICMP packets.

This is how easy it is to allow pings in the firewall through the command line.

Disable firewall via command line

Disabling the firewall from the command line is done with the following command:

netsh advfirewall set allprofiles state off

To enable, change off to on,

The built-in firewall in the "7", paradoxically, is implemented quite well in comparison with previous versions of Windows. Nevertheless, users often ask the question - how to disable the windows 7 firewall?

What is a firewall and why is it disabled

A firewall, or firewall, acts as a firewall. The literal translation from English and German is "wall of fire". Implemented as one of the Windows OS services. The firewall protects the computer from hacking over the network and prevents the leakage of user information.

The need to disable the windows 7 firewall arises in the event of a conflict. Almost all known anti-virus programs have their own firewall. Some users prefer some powerful firewalls, such as those from Norton, Outpost, and other third-party vendors. Two firewalls in the system, like two antiviruses, do not get along, and the consequences of such a "friendship" are slowdown and freezing of the system.

A warning. It is not recommended to disable protection in case of problems with network access for individual programs. It is enough to add trusted applications to the firewall exceptions. Some programs themselves offer to do this during installation.

Following is the step-by-step instruction how to disable firewall windows 7:

Disable the firewall from the Control Panel

1. We go through the "Start" in the "Control Panel", then "System and Security" (Fig. 1).

2. In the window that appears, click "Windows Firewall" (in Fig. 4 marked with the number 1). A firewall window will open, as in Figure 2.

3. Select "Turn Windows Firewall on and off" (circled in Figure 2). A window will open as in Fig. 3.

4. The windows 7 firewall distinguishes between home (private) and public networks. The latter includes the Internet. For home LANs, a firewall is not needed, so it is disabled. However, for public networks, it is recommended to leave the firewall enabled.

Fig. 1


Fig. 2


Fig. 3

Disable Firewall through the Administration Tab

  1. Through the "Start" in the "Control Panel", select "System and Security", open the tab shown in Fig.4. We press "Administration" (indicated in the figure with the number 2).
  2. In the "Administration" window (Fig. 5), select "Services" (arrow). The Services window will open.
  3. Scrolling through the list of services, we find "Windows Firewall". Right-clicking on it will open a list of possible actions. We select "Stop" (marked with the number 1) - after a couple of seconds, the service will stop.
  4. To prevent the firewall from starting after rebooting, right-click on it again. Now select "Properties" (in Fig. 5 number 2). In the window that opens, set the startup type to "Disabled".

To turn on the firewall, we do everything in the reverse order.


Fig. 4


Fig. 5

Disable firewall from the command line

A method for the most "advanced". We open the command line in administrator mode, and enter the commands without errors:

1. Disabling the firewall:

netsh firewall set opmode disable

2. Switching on:

netsh firewall set opmode enable

We check the action of the commands on the settings tab (Fig. 3). If the tab is open, do not forget to update its appearance.

Everything. Now you know how to disable the windows 7 firewall. We do not recommend leaving a computer connected to the network without firewall protection.