Microsoft Windows XP
[Version 5.1.2600
](C) Copyright 1986-2001 Microsoft Corp.
C
:\WINDOWS>netsh firewall delete portopening ?
delete portopening
[ protocol =
] TCP
|UDP
|ALL
[ port =
] 1-65535
[ [ profile =
] CURRENT
|DOMAIN
|STANDARD
|ALL
[ interface =
] name
]
删除防火墙端口配置。
参数
:
protocol - 端口协议。
TCP - 传输控制协议(TCP)。
UDP - 用户数据报协议(UDP)。
ALL - 所有协议。
port - 端口号。
profile - 配置的配置文件(可选)。
CURRENT - 当前配置文件(默认值)。
DOMAIN - 域配置文件。
STANDARD - 标准配置文件。
ALL - 所有配置文件。
interface - 接口名称(可选)。
备注
: 'profile' 和 'interface' 不能一起指定。
示例
:
delete portopening TCP 80
delete portopening UDP 500
delete portopening protocol = TCP port = 80
delete portopening protocol = UDP port = 500