netsh » firewall » set » service

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1986-2001 Microsoft Corp.
C:\WINDOWS>netsh firewall set service ? set service [ type = ] FILEANDPRINT|REMOTEADMIN|REMOTEDESKTOP|UPNP|ALL [ [ mode = ] ENABLE|DISABLE [ scope = ] ALL|SUBNET|CUSTOM [ addresses = ] addresses [ profile = ] CURRENT|DOMAIN|STANDARD|ALL ] 设置防火墙服务配置。 参数: type - 服务类型。 FILEANDPRINT - 文件和复印机共享。 REMOTEADMIN - 远程管理。 REMOTEDESKTOP - 远程协助和远程桌面。 UPNP - UPnP 框架。 ALL - 所有类型。 mode - 服务模式(可选)。 ENABLE - 允许通过防火墙(默认值)。 DISABLE - 不允许通过防火墙(默认值)。 mode - 服务范围(可选)。 ENABLE - 允许所有流量通过防火墙(默认值)。 SUBNET - 只允许本地网络(子网)流量通过防火墙。 CUSTOM - 只允许指定的流量通过防火墙。 addresses - 自定义范围地址(可选)。 profile - 配置的配置文件(可选)。 CURRENT - 当前配置文件(默认值)。 DOMAIN - 域配置文件。 STANDARD - 标准配置文件。 ALL - 所有配置文件。 备注: 如果 'mode' 是 DISABLE,'scope' 被忽略。 'scope' 必须是 'CUSTOM' 才能指定 'addresses'。 示例: set service FILEANDPRINT set service REMOTEADMIN ENABLE SUBNET set service REMOTEDESKTOP ENABLE CUSTOM 157.60.0.1,172.16.0.0/16,10.0.0.0/255.0.0.0,LocalSubnet set service type = FILEANDPRINT set service type = REMOTEADMIN mode = ENABLE scope = SUBNET set service type = REMOTEDESKTOP mode = ENABLE scope = CUSTOM addresses = 157.60.0.1,172.16.0.0/16,10.0.0.0/255.0.0.0,LocalSubnet

NETSH / FIREWALL / SET / SERVICE


Quick - Link:
netsh firewall set icmpsetting
设置防火墙 ICMP 配置。
netsh routing ip ospf add range
为指定的区域 ID 添加范围。
netsh interface show interface
显示接口。
netsh routing ipx sap dump
显示一个配置脚本。
netsh ras show multilink
显示 PPP 要协商的多重链接








Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



设置防火墙服务配置。 / Windows 2000/XP

HTTP: ... cmd/cn/Windows_XP/netsh/firewall/set/service.htm
0.061
17147

Direkt zu den Windows 11 WiFi Einstellungen als Verknüpfung!

Favorites KOs for a quick termination of the windows processes!

The drawing / paint program under Windows 11!

Select the speaker for playback in Windows 11!

The corona viruses have mutated into macro viruses!

Detect the amount of data transferred under Windows 11 per application!



(0)