关闭常见危险端口

netsh advfirewall set publicprofile state on >null
netsh advfirewall set currentprofile state on >null
netsh advfirewall firewall add rule name="135_139_445" protocol=TCP dir=in localport=135,139,445 action=block
netsh advfirewall firewall add rule name="137_138" protocol=UDP dir=in localport=137,138 action=block
原文地址:https://www.cnblogs.com/feiyucha/p/11209937.html