Windows Firewall Rules (WMI) for Psexec & BatchPatch

In order for many remote management items such as Psexec and BatchPatch to function, it requires file & file sharing as well as WMI to be enabled.

If you are able to Psexec into the machine then the only cmdlet required for BatchPatch to function (at least for the most part) is WMI. If you cannot get Psexec to work then File & Print Sharing is turned off. You will need to connect using the console to enable it manually.

WMI:

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

Windows 10 (PowerShell) – enable-netfirewallrule -displaygroup “windows management instrumentation (wmi)”