How To: Firewall Commands In Server Core

| | No TrackBacks

There are no GUI tools for Server Core to handle firewall tasks. All of them can be handled using netsh command-line utility. To start, enter the ADv Firewall context of netsh by using the command

NetSH ADVFirewall

Use 'help' command in any context to get the list of available (sub)commands.

Three Firewall Profiles are configured in Windows Vista and Windows Serverv 2008. To get the information on all of them, run this:

NetSH ADVFirewall Show Allprofiles

State column of the output displays the profile state (on or off).

To enable all the profiles, use the command

NetSH ADVFirewall Set Allprofiles State on

to turn them all on (use 'off' to turn them all off).

To reset the firewall completely and restore default values, run the command

NetSH ADVFirewall Set Allprofiles FirewallPolicy BlockInbound,AllowOutbound

To switch on or off a single featurem use 'Settings' modifier to specify what is to change, i.e.

NetSH ADVFirewall Set AllProfiles Settings remotemanagement enable / disable

will change the state of Remote Management service.

No TrackBacks

TrackBack URL: /blog/mt-tb.cgi/12

blog comments powered by Disqus

About this Entry

This page contains a single entry by Konstantin Boyandin published on December 3, 2009 6:06 PM.

Switch Off Internet Explorer Enhanced Security In Windows Server 2008 was the previous entry in this blog.

How to: Remove Cached 802.1X/PEAP Login Information In Windows Vista is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.