Commands and admin requirement compact:
:: check status
netsh advfirewall show allprofiles
:: disable (admin)
netsh advfirewall set allprofiles state off
:: enable (admin)
netsh advfirewall set allprofiles state on
PowerShell alternative:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
Don’t stop the Windows Firewall service (MpsSvc) with sc stop that’s not recommended. Use the netsh/PowerShell methods above.