Netsh配置端口

 

开启防火墙端口

netsh firewall set portopening all 3389 RDP_Rule enable (TCP/UDP)

 

#配置RPC高位端口段
Netsh int ipv4 set dynamicportrange protocol=tcp startport=50000 numberofports=10000
Netsh int ipv4 show dynamicportrange protocol=tcp

 


#禁用高级安全Windows防火墙
netsh advfirewall set allprofiles state off
#禁用Windows Firewall服务
Net stop MpsSvc
cmd /c "SC config MpsSvc start= disabled"

 

 

 

 

 

posted on 2013-11-22 09:45  momingliu11  阅读(1385)  评论(0编辑  收藏  举报