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

Posted by David on Super User See other posts from Super User or by David
Published on 2011-05-18T10:03:32Z Indexed on 2011/11/14 1:55 UTC
Read the original article Hit count: 309

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

© Super User or respective owner

Related posts about command-line

Related posts about windows-server-2008-r2