Using netsh to control firewall settings

  • Using netsh, you can configure the firewall on Server Core 2008 R2. if you need to have the ability to remotely gather information on a server core, make sure “Remote Administration” is enabled on the systems firewall.
    • Command >> netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
  • Now to have the ability to remotely manage the server and configure access for WMI.
    • Command >> netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes
  • To allow for the ability to remotely manage a windows firewall on a fully installed Windows Server 2008 R2 with netsh.
  •  Command >> netsh advfirewall set currentprofile settings remotemanagement enable