Выключить фаервол windows ( Disable Windows Firewall via Command Line)

Have any of you ever tried talking someone through disabling the bundled Windows Firewall? It’s pretty easy to do if your end-user knows what their Control Panel is and if they know the difference between an icon and an iPod, but sometimes, it’s just not that simple and you can spend 15 minutes trying to describe to the user what “doodads” and “thingamajigs” to click on. Allow me to introduce you to
netsh

– a nifty command line tool designed to interface with the Windows networking stack. For example, to disable the firewall, enter the following command in the Run dialog, or from a Command Line:

netsh firewall set opmode disable

Включить Windows Firewall
Жмём "Пуск"->"выполнить" и набираем:

Netsh firewall set opmode enable

Выключить Windows Firewall
Жмём "Пуск"->"выполнить" и набираем:

Netsh firewall set opmode disable

Windows Firewall status can be verified using Windows Security Center or the Windows Firewall applet.

Note: In Windows Vista you need to run the above commands from an elevated Command Prompt. To open an elevated Command Prompt, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

You may create desktop two shortcuts to enable and disable the Windows Firewall. To run the commands as administrator, right-click on the shortcut and choose Run as administrator. Or right-click the shortcut properties, click Advanced and tick the Run as administrator checkbox and click OK. Double-clicking the shortcut run the Netsh… command elevated, after you click the Continue button in the UAC confirmation dialog.

Customize the shortcut icons by picking an appropriate icon from Shell32.dll, Imageres.dll or from xpsp2res.dll (for Windows XP) for easy identification.

Примечание: Работа "netsh firewall" команды работает в Windows XP, Windows Vista, Windows 7 and Windows Server 2008 Operating Systems.

The netsh firewall command-line context might be deprecated in a future version of the Windows operating system. We recommend that you use the netsh advfirewall firewall context to control firewall behavior.

Больше информации ищем на сайте Microsoft. Статья KB947709 "How to use the “netsh advfirewall firewall” context instead of the “netsh firewall” context to control Windows Firewall behavior in Windows Server 2008 and in Windows Vista."