Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to assign Windows Firewall's public profile to the public Ethernet interface and the private profile to the private Ethernet interface. I can do this with the GUI via

  1. Open Windows Firewall with Advanced Security
  2. Click on Windows Firewall Properties
  3. Click the Private Profile Tab
  4. Click Customize
  5. Select the Interface I want (private)
  6. Click OK
  7. Repeat step 3-6 for the public profile

How do I do this via command line? I'm using Windows Server 2008 R2

share|improve this question

2 Answers 2

You can find full information about Netsh AdvFirewall Firewall Commands at MS Technet:

TechNet Library: Windows Server Netsh AdvFirewall Firewall Commands

share|improve this answer

From PowerShell: Set-NetFirewallProfile -Name %ProfileName% -DisabledInterfaceAliases %YouConnectionName%

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.