How to disabled windows firewall with command line

Standard

How to disabled or enable windows firewall with command line

windows firewall is enable by default on windows.

To Turn Off

netsh advfirewall set allprofile state off

To Turn On

netsh advfirewall set allprofile state on

To check status of Firewall:

netsh advfirewall show allprofiles