Com‐
mand
Parameter Description Value
new Specifies that the following parameters
are to be changed or added.
-
enable Activates or deactivates the specified
firewall rule.
yes | no
Example
Example 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=public
set rule name="File and Printer Sharing (NB-Session-Out)" new enable=yes
profile=public
set rule name="File and Printer Sharing (SMB-In)" new enable=yes
profile=public
set rule name="File and Printer Sharing (SMB-Out)" new enable=yes
profile=public
set rule name="File and Printer Sharing (NB-Name-In)" new enable=yes
profile=public
set rule name="File and Printer Sharing (NB-Name-Out)" new enable=yes
profile=public
set rule name="File and Printer Sharing (NB-Datagram-In)" new enable=yes
profile=public
set rule name="File and Printer Sharing (NB-Datagram-Out)" new enable=yes
profile=public
set rule name="File and Printer Sharing (Spooler Service - RPC)" new
enable=yes profile=public
set rule name="File and Printer Sharing (Spooler Service - RPC-EPMAP)" new
enable=yes profile=public
set rule name="File and Printer Sharing (Echo Request - ICMPv4-In)" new
enable=yes profile=public
set rule name="File and Printer Sharing (Echo Request - ICMPv4-Out)" new
enable=yes profile=public
set rule name="File and Printer Sharing (Echo Request - ICMPv6-In)" new
enable=yes profile=public
set rule name="File and Printer Sharing (Echo Request - ICMPv6-Out)" new
enable=yes profile=public
set rule name="File and Printer Sharing (LLMNR-UDP-In)" new enable=yes
profile=public
set rule name="File and Printer Sharing (LLMNR-UDP-Out)" new enable=yes
profile=public
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)
Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1 85