win7系统关闭445端口
开启防火墙
netsh advfirewall set currentprofile state on
netsh advfirewall set publicprofile state on
dir=out为出站,in为入站
netsh advfirewall firewall add rule name=“135_139_445_3389” protocol=TCP dir=in localport=135,139,445,3389 action=block
netsh advfirewall firewall add rule name=“规则名” dir=out program="程序路径 " action=block
参考文章网址:https://www.52pojie.cn/thread-786332-1-1.html