Alternatively, you can save the command and the associated parameters in a script file
(Page 70).
Syntax for the activation of all firewall rules regarding file and printer release
netsh
advfirewall firewall
set rule name="File and Printer Sharing (NB-Session-In)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (NB-Session-Out)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (SMB-In)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (SMB-Out)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (NB-Name-In)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (NB-Name-Out)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (NB-Datagram-In)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (NB-Datagram-Out)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (Spooler Service - RPC)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (Spooler Service - RPC-EPMAP)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (Echo Request - ICMPv4-In)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (Echo Request - ICMPv4-Out)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (Echo Request - ICMPv6-In)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (Echo Request - ICMPv6-Out)" new
enable=yes profile=<profile>
set rule name="File and Printer Sharing (LLMNR-UDP-In)" new enable=yes
profile=<profile>
set rule name="File and Printer Sharing (LLMNR-UDP-Out)" new enable=yes
profile=<profile>
Table 4-9 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. -
name Name of the firewall rule in quotation
marks.
"File and Printer Sharing (NB-
Session-In)" | ...
Configuration of the system
4.17 Adapting the firewall settings
PCU Base Software (IM10)
84 Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1