Disabling Windows 2012 R2 firewall with netsh

Handy command to use when disabling the Windows firewall – especially for Windows core servers which lack the GUI:

netsh advfirewall set allprofiles state off

advfirewall-state-off