Turn Windows Firewall on or off using the command line

王林
Release: 2024-01-02 19:24:07
forward
2005 people have browsed it

When we use computers to turn off the firewall, many friends think that the steps are too troublesome. So the easiest way is to use commands to turn on or off the firewall. Today I will teach you detailed commands to organize your computer quickly and conveniently. Let’s take a look at the specific tutorial below.

Detailed commands for turning on/off Windows Firewall

1. Open Run and enter cmd.

Turn Windows Firewall on or off using the command line

2. Directly execute the command:

Turn Windows Firewall on or off using the command line

NetSh Advfirewall set allprofiles state on //Open the firewall

NetSh Advfirewall set allprofiles state off //Turn off the firewall

Start the firewall:

Turn Windows Firewall on or off using the command line

Restore the default firewall policy:

Turn Windows Firewall on or off using the command line

To view more information, run the following command:

netsh advfirewall reset?

The above is the detailed content of Turn Windows Firewall on or off using the command line. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:somode.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template