How do I assign Windows Firewall profiles to network interfaces from the command line?

Solution 1:

I'm afraid this GUI won't assign profiles to interfaces. It seems like it can only guarantee that certain profile won't apply to certain NIC when Windows thinks its network classifies as such profile. Mind the name of the PS parameter, "DisabledInterfaceAliases".

Solution 2:

From PowerShell:

Set-NetFirewallProfile -Name %ProfileName% -DisabledInterfaceAliases %YourConnectionName%