@echo off rem 下面添加要加入到例外的端口号.这里使用all,表示TCP与UDP.如果只是tcp或UDP,可以改成相应的. netsh firewall set portopening all 3230 polycom-3230 enable netsh firewall set portopening all 3231 polycom-3231 enable netsh firewall set portopening all 3232 polycom-3232 enable netsh firewall set portopening all 3233 polycom-3233 enable netsh firewall set portopening all 3234 polycom-3234 enable netsh firewall set portopening all 3235 polycom-3235 enable netsh firewall set portopening all 3236 polycom-3236 enable netsh firewall set portopening all 3237 polycom-3237 enable netsh firewall set portopening all 3238 polycom-3238 enable netsh firewall set portopening all 3239 polycom-3239 enable netsh firewall set portopening all 3240 polycom-3240 enable netsh firewall set portopening all 3241 polycom-3241 enable netsh firewall set portopening all 3242 polycom-3242 enable netsh firewall set portopening all 3243 polycom-3243 enable netsh firewall set portopening all 3244 polycom-3244 enable netsh firewall set portopening all 3245 polycom-3245 enable netsh firewall set portopening all 3246 polycom-3246 enable exit