If you want to enable and disable firewall using command line that is pretty easy and simple Let me show you.
Firewall is used to protect the internal network from outside the world. If you keep firewall “ON” it will protect your system accessing from the outside the world.
You can use windows firewall built-in features in windows or you can use antivirus to protect your system .
Here I’m going to show you how to do this
Now I’m going to stop the firewall using command line
Run this command by login as an administrator
The command is netsh firewall set opmode disable
If you want to enable use this command is netsh firewall set opmode enable