%1!s! [ protocol = ] TCP|UDP|ALL [ port = ] 1-65535 [ [ profile = ] CURRENT|DOMAIN|STANDARD|ALL Deletes firewall port configuration. Parameters: protocol - Port protocol. TCP - Transmission Control Protocol (TCP). UDP - User Datagram Protocol (UDP). ALL - All protocols. port - Port number. profile - Configuration profile (optional). CURRENT - Applies to the active profile. Active profile can be domain, standard (i.e. private), or public. (default). DOMAIN - Applies to the domain profile. STANDARD - Applies to the standard (i.e. private) profile. ALL - Applies to the domain and standard (i.e. private) profile. Does not apply to the public profile. Examples: %1!s! TCP 80 %1!s! protocol=UDP port=500 IMPORTANT: "netsh firewall" is deprecated; use "netsh advfirewall firewall" instead. For more information on using "netsh advfirewall firewall" commands instead of "netsh firewall", see KB article 947709 at http://go.microsoft.com/fwlink/?linkid=121488 .
s! program = path name = name mode = ENABLE|DISABLE scope = ALL|SUBNET|CUSTOM addresses = addresses profile = CURRENT|DOMAIN|STANDARD|ALL ...
s! program = path profile = CURRENT|DOMAIN|STANDARD|ALL Deletes firewall allowed program configuration. Parameters: program ...
s! protocol = TCP|UDP|ALL port = 1-65535 name = name mode = ENABLE|DISABLE scope = ALL|SUBNET|CUSTOM addresses = addresses ...
s! protocol = TCP|UDP|ALL port = 1-65535 name = name mode = ENABLE|DISABLE scope = ALL|SUBNET|CUSTOM addresses = addresses ...
s! protocol = TCP|UDP|ALL port = 1-65535 profile = CURRENT|DOMAIN|STANDARD|ALL Deletes firewall port configuration. Parameters: ...
s! provider = WINDOWS|RADIUS Sets the authentication provider. windows Windows security should perform authentication. radius ...
s! provider = WINDOWS|RADIUS|NONE Sets the accounting provider. windows Windows security should perform accounting. radius ...
s! psk= ENABLED | DISABLED secret = Sets the IPsec policy for L2TP connection. psk - Specifies whether a L2TP connection ...
s! Resets firewall configuration to default. Remarks: Restoring the default settings will delete all Windows Firewall settings ...