The following "netsh" commands should work for Windows 2012 to enable WMI through the Windows Firewall.
c:\> netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes c:\> netsh advfirewall firewall set rule group="remote administration" new enable=yes