Does your firewall rules look like this? Some rules applies to all profiles and some to some others?


If you need to streamline the rules to just apply to one profile, PowerShell is your friend here!

Use the following PowerShell command to list all the rules that are enabled

Get-NetFirewallRule -Enabled True

To change a profile for a specific rule the command for this is

Set-NetFirewallRule -Name “Rule Name” -Profile “Private,Domain”

But what about changing all of them? Easy just type and it will enumerate all your enabled rules and apply only to Domain profile

Get-NetFirewallRule -Enabled True | Set-NetFirewallRule -Profile Domain