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