Disable Firewall

 netsh advfirewall set allprofiles state off

Enable Firewall

 netsh advfirewall set allprofiles state on