Configure and troubleshoot Windows Firewall and ICS

When trying to configure the Windows Firewall using firewall.cpl in Windows XP, then it will give the following error if the service is not running:

Windows Firewall settings cannot be displayed because the associated service is not running. Do you want to start the Windows Firewall/Internet Connection Sharing (ICS) service?

Due to an unidentified problem, Windows cannot display Windows Firewall settings.

When trying to start the Windows Firewall service, then it might give one of the following errors:

Windows cannot start the Windows Firewall/Internet Connection Sharing (ICS) service.

An error occurred while Internet Connection Sharing was being enabled. The dependency service or group failed to start.

The cause of these problems can either be that one is using Windows Live OneCare (Disables the Windows firewall service), or that the Windows Firewall service has a faulty configuration or the components it depends on are corrupt.

Check that the following services are running properly, which the Windows Firewall depends upon:

To repair the configuration of the Windows Firewall open a command prompt and run this command:

NETSH FIREWALL RESET

If the Windows Firewall service still fails to start, then try to reinstall the Windows Firewall with this command (Followed by the command above to reset the configuration):

Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf

More Info MS KB920074

If the Windows Firewall service still fails to start, then try to repair the TCP/IP and Winsock interface with these commands:

netsh int ip reset
netsh winsock reset

If the Windows Firewall service still fails to start, then try to repair the WMI Repository with this command:

rundll32 wbemupgd, UpgradeRepository

More Info MS KB892199

Credits WindowsXP.mvps.org