Enabling WMI firewall exceptions in your Windows 7 / 8 task sequence

In a perfect world you wouldn’t really need to do this, but sometimes changes to the Windows firwall need to be made before applications can be installed correctly, and if you’re forced to move the domain join to very end of your task sequence for whatever reason and/or you’re not joining these systems to a domain or whatever, you have no choice. Luckily the WMI exception can be configured via command line.


netsh advfirewall firewall set rule group=”windows management instrumentation (wmi)” new enable=yes

netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes