To do this, call the prompt as the administrator and enter the command either completely or
successively.
Alternatively, you can save the command and the associated parameters in a script file
(Page 70).
Syntax for activating a group of firewall rules via the prompt
netsh advfirewall firewall set rule group="<group name>" new enable=yes
Table 4-8 Description of the Netsh commands in the context of the advfirewall firewall
Com‐
mand
Parameter Description Value
netsh Specification of the command line pro‐
gram, which executes the following
commands.
-
adv‐
firewall
Defines the context in which the follow‐
ing commands are to be carried out.
-
firewall Subcontext of "advfirewall". -
set
rule
Adaptation of existing firewall rules. -
group Name of the group with firewall rules "File and Printer Sharing" | ...
new Specifies that the following parameters
are to be changed or added.
-
enable Activates or deactivates the specified
group of firewall rules.
yes | no
Example
Activation of the firewall rule "File and printer release" for the "Public" profile.
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
Further information
Descriptions of the commands and of all of the associated parameters of Netsh within the
Advfirewall firewall context can be found on the Microsoft website:
● Microsoft TechNet - Netsh AdvFirewall Firewall Commands (https://technet.microsoft.com/
en-us/library/dd734783(v=ws.7).aspx#BKMK_3_set)
Configuration of the system
4.17 Adapting the firewall settings
PCU Base Software (IM10)
80 Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1