Command: netsh Firewall
Parameters:
? // Display the command list
Add // Add Firewall Configuration
Delete // delete firewall configuration
Dump // display a configuration script
Help // display the command list
Reset // reset the firewall configuration to the default value.
Set // configure the firewall
Show // display firewall configurations
Add allowedprogram // Add the program configurations allowed by the firewall.
Add portopening // Add firewall port configuration
Delete allowedprogram // Delete the program configurations allowed by the firewall
Delete portopening // Delete the firewall port configuration
Set allowedprogram // set the program configurations allowed by the firewall
Set icmpsetting // set the firewall ICMP Configuration
Set logging // Set firewall record Configuration
Set multicastbroadcastresponse // set the firewall multicast/broadcast response Configuration
Set notifications // Configure Firewall notifications
Set opmode // Set firewall operation configuration
Set portopening // Set firewall port configuration
Set service // Set firewall service configuration
Show allowedprogram // display the program configurations allowed by the firewall
Show config // display firewall configurations.
Show currentprofile // display the current firewall configuration file
Show icmpsetting // display firewall ICMP configurations
Show logging // display firewall record Configuration
Show notifications // display firewall operation configurations
Show opmode // display firewall port configurations
Show portopening // display firewall port configurations
Show service // display Firewall Service configurations
Show state // display the current Firewall Status
For example:
Command: netsh firewall show allowedprogram // view the program permitted by the firewall
Netsh firewall set portopening TCP 445 enable // open port 445
Netsh firewall set portopening TCP 3389 enable // needless to say, release the terminal ..
Netsh firewall Delete allowedprogram C:/a.exe // The Delete row program a.exe
Netsh firewall set allowedprogram C:/a.exe A enable // a.exe under program C and release
Netsh Firewall add allowedprogram C:/a.exe A enable // a.exe under program C and release
Set allowedprogram and add allowedprogram both have the same effect. C:/a.exe is the program name displayed in the firewall in program path, someone with ulterior motives can use a confusing name .. Haha .. Try other commands ..