Setting Windows Firewall for Windows Management Instrumentation Windows 10 in PS Script
I have a set of instructions that has you check the box in the appropriate profile column in "Allowed Apps" next to "Windows Management Instrumentation" e.g. Private or Domain.
In order to implement these instructions in a Powershell script (my objective), there are a number of firewall rules involved. These include AT LEAST: "Windows Management Instrumentation (ASync-In)" Public/Private/Domain "Windows Management Instrumentation (DCOM-In)" Public/Private/Domain "Windows Management Instrumentation (WMI-In)" Public/Private/Domain I determined this list by researching it and by observing what happens:
If one uses one profile check box in Allowed Apps for the network profile, these seem to be what are enabled. Also, starting with the box NOT checked, if one enables the firewall rules above individually and "completely" then when you go back to Allowed Apps, you expect the check box to be checked and with no gray shading (which appears to mean "part way"). However, in this case, enabling the rules above manually results in the check box with gray shading which implies something is missing.
What's missing? It seems either there's another rule or rules that need to be enabled for this OR there are parameter settings within the 3 rules above that need to be changed.
Windows 10Windows OS* Firewal rulesNetwork Management
So to grab all the rules, we can use similar code in your previous question and instead grab the objects by group and enable them in a loop. I'll change the syntax a bit so its easier to understand
Open in new windowNow in my list, all the rules are enabled