If for some reasons you need to disable Windows firewall, you should get away from a bunch of technics that disable the firewall service like the SC.exe command, Win32_Service from WMI, HKLM\SYSTEM\CurrentControlSet\Services\MpsSvc from the registry etc…
All those methods, while working, are a bit too strong for windows 10 taste. They work so well that they will not only disable your firewall but also render the search bar unusable… ???!!…( Don’t ask !)
So, to make your search bar happy and usable you should instead always use something less abrasive like this:
netsh advfirewall set allprofiles state off
Now you know !