Information Technology Reference
In-Depth Information
4.
From the Advanced tab, click the Restore Defaults button in the Default Settings section.
Click Yes to acknowledge the warning message stating that this will delete all settings of
Windows Firewall that you have made since Windows was installed.
5.
Click OK when you're finished.
Using a Command-Line Interface
The following command resets the Windows Firewall to its default settings:
> netsh firewall reset
Using VBScript
This code restores the Windows Firewall to its default settings.
Set Firewall = CreateObject("HNetCfg.FwMgr")
Firewall.RestoreDefaults()
WScript.Echo "Default settings restored."
How It Works
As an ongoing administrative task, you should monitor and audit your firewall settings to
ensure that any existing settings, such as port and program exceptions, are still applicable to
your current environment. This ensures that your network is not exposed to any unnecessary
risks caused by unused or out-of-date firewall exceptions being enabled.
By using the RestoreDefaults() method, you can erase all user-defined program and port
exceptions that you've created, and restore the Windows Firewall to its default setting of Enabled
with appropriate exceptions permitted.
Note As a precaution, you should take a Registry backup before performing this procedure.
See Also
￿The RestoreDefault() method in the Windows Firewall
￿
Microsoft TechNet: “Restore Windows Firewall Default Settings”
( http://technet2.microsoft.com/WindowsServer/en/Library/
22623f4a-4699-4a59-8365-97783d117bd81033.mspx )
3-16. Configuring Per-Interface Protection
Problem
You want to enable or disable the Windows Firewall for individual network interface cards
(NICs) installed in a Windows Server 2003 computer.
Search WWH ::




Custom Search