%1!s! [ program = ] path [ [ name = ] name [ mode = ] ENABLE|DISABLE [ scope = ] ALL|SUBNET|CUSTOM [ addresses = ] addresses [ profile = ] CURRENT|DOMAIN|STANDARD|ALL ] Sets firewall allowed program configuration. Parameters: program - Program path and file name. name - Program name (optional). mode - Program mode (optional). ENABLE - Allow through firewall (default). DISABLE - Do not allow through firewall. scope - Program scope (optional). ALL - Allow all traffic through firewall (default). SUBNET - Allow only local network (subnet) traffic through firewall. CUSTOM - Allow only specified traffic through firewall. addresses - Custom scope addresses (optional). This comma-separated scope can contain IPv4 addresses, IPv6 addresses, subnets, ranges, or the keyword LocalSubnet. 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. Remarks: 'scope' must be 'CUSTOM' to specify 'addresses'. ‘addresses' can not contain Unspecified or Loopback addresses. Examples: %1!s! C:\MyApp\MyApp.exe "My Application" DISABLE %1!s! C:\MyApp\MyApp.exe "My Application" ENABLE CUSTOM 157.60.0.1,172.16.0.0/16,10.0.0.0/255.0.0.0, 12AB:0000:0000:CD30::/60,LocalSubnet %1!s! program=C:\MyApp\MyApp.exe name="My Application" mode=DISABLE %1!s! program=C:\MyApp\MyApp.exe name="My Application" mode=ENABLE scope=CUSTOM addresses=157.60.0.1, 172.16.0.0/16,10.0.0.0/255.0.0.0, 12AB:0000:0000:CD30::/60,LocalSubnet
s! oid = oid minkeylength = minkeylength maxkeylength = maxkeylength Adds an asymmetric key algorithm to the list of allowed ...
s! oid = oid Sets the hash algorithm that will be used on the target computer. You can obtain the oid from the "show hashes" ...
s! prefix= Sets the static IPv6 prefix that the Remote Access server uses to advertise to the clients. - the IPv6 prefix ...
s! program = path name = name mode = ENABLE|DISABLE scope = ALL|SUBNET|CUSTOM addresses = addresses profile = CURRENT|DOMAIN|STANDARD|ALL ...
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: ...