This command can be used when we are working with windows network:
Open command prompt
This command gets into the firewall section.
netsh firewall set opmode enable “To enable firewall”
netsh firewall set opmode disable “To disable firewall”
Done.