Secure Your PC: 5 Proven Methods to Reset Windows 11 Firewall

The Windows Defender Firewall is a critical security component in Windows 11, designed to protect your system from unauthorized access and malicious threats. By default, it is enabled and configured to provide a baseline level of security. However, users possess the flexibility to manually adjust its settings to suit their specific needs. This often involves creating rules to block or allow network connections for various applications. As you use your computer and install more software, the complexity of your firewall configuration can increase, making it challenging to manage all the rules effectively.

Over time, the accumulation of custom firewall rules can lead to confusion and potential security vulnerabilities if not properly maintained. It’s easy to lose track of which applications have been granted network access and for what purposes. While you can manually review and modify firewall settings, a more efficient solution is to reset the Windows Firewall to its default configuration, especially if you suspect misconfigurations or want to start with a clean slate. This guide will explore five proven methods to effectively reset your Windows Defender Firewall to its default settings in Windows 11, ensuring your system remains secure and operates optimally. Let’s delve into these methods to help you regain control over your firewall settings.

1. Reset Windows Firewall Settings to Default via Control Panel

The Control Panel provides a user-friendly interface to manage various system settings, including the Windows Firewall. Resetting the firewall through the Control Panel is a straightforward method suitable for users who prefer a graphical interface. This approach allows you to restore the firewall to its original, out-of-the-box state with just a few clicks. Let’s outline the steps to accomplish this:

Step 1: Access Control Panel

To begin, you need to open the Control Panel. Click on the Windows 11 search bar, typically located on the taskbar, and type “Control Panel”. From the search results, select and click on the Control Panel application to launch it.

Access Control Panel

Step 2: Navigate to System and Security

Once the Control Panel window is open, you will see different categories of settings. Locate and click on the System and Security option. This section groups together settings related to your computer’s security and system maintenance.

System and Security

Step 3: Open Windows Defender Firewall

Within the System and Security page, you will find a list of options. Click on Windows Defender Firewall. This will take you to the main settings page for managing your firewall.

Windows Defender Firewall

Step 4: Restore Defaults

In the Windows Defender Firewall window, look at the left-hand pane. You will see several links listed there. Click on the Restore defaults link. This link is specifically designed to initiate the process of resetting your firewall settings.

Restore defaults link

Step 5: Confirm Reset

After clicking “Restore defaults,” a new window will appear, prompting you to confirm your action. In this window, you will see a button labeled Restore Defaults. Click on this button to proceed with resetting the Windows Firewall to its default settings.

Restore Defaults Button

Upon clicking the “Restore Defaults” button, Windows 11 will immediately revert your firewall configuration back to its original state. All custom rules and settings you have previously configured will be removed, and the firewall will operate based on its default rules. This method is quick and effective for resetting your firewall using a graphical interface.

2. Reset Firewall Settings from the Command Prompt

For users who are comfortable with command-line interfaces, the Command Prompt offers a fast and efficient way to reset the Windows Firewall. This method is particularly useful for system administrators and advanced users who prefer using commands for system management. Using the Command Prompt to reset the firewall is a direct approach that bypasses graphical interfaces. Here’s how to do it:

Step 1: Open Command Prompt as Administrator

To execute firewall reset commands, you need to open Command Prompt with administrative privileges. Click on the Windows 11 search bar and type “Command Prompt” or “cmd”. In the search results, right-click on Command Prompt and select Run as administrator. Grant the necessary permissions if prompted by User Account Control. Running as administrator is crucial because resetting firewall settings requires elevated privileges.

Run Command Prompt as Administrator

Step 2: Execute the Reset Command

Once the Command Prompt window is open with administrator privileges, type the following command exactly as shown:

netsh advfirewall reset

After typing the command, press the Enter key to execute it. This command instructs the Network Shell (netsh) utility to reset the advanced firewall settings to their default configuration.

Command Prompt Reset Command

Step 3: Verify Success

After executing the command, the Command Prompt will process the request. Upon successful completion, you should see an “Ok” message displayed in the Command Prompt window. This “Ok” message is confirmation that the Windows Firewall has been successfully reset to its default settings.

Command Prompt Success Message

This method using the Command Prompt is a concise and efficient way to reset your Windows 11 Firewall. It is particularly favored for its speed and directness, especially in scripting or automated tasks.

3. Reset Windows Firewall Settings using PowerShell

PowerShell is a powerful scripting language and command-line shell from Microsoft, offering more advanced capabilities than the traditional Command Prompt. Resetting the firewall through PowerShell provides an alternative command-line method, which can be particularly useful in scripting environments or for users who prefer PowerShell’s scripting capabilities. If the Command Prompt method does not work for any reason, PowerShell provides a robust alternative. Here’s how you can reset the firewall settings using PowerShell:

Step 1: Open PowerShell as Administrator

Similar to the Command Prompt method, you need to open PowerShell with administrative privileges to reset the firewall settings. Click on the Windows 11 search bar and type “PowerShell”. In the search results, right-click on PowerShell and select Run as administrator. Confirm any User Account Control prompts to grant administrative access. Running PowerShell as administrator ensures that the firewall reset command has the necessary permissions to execute.

Run PowerShell as Administrator

Step 2: Execute the PowerShell Command

Once PowerShell is running with administrator privileges, copy and paste the following command into the PowerShell window:

(New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()

After pasting the command, press the Enter key to execute it. This PowerShell command utilizes a COM object (HNetCfg.FwPolicy2) to interact with the Windows Firewall service and restore its default settings.

PowerShell Reset Command

Step 3: Verify Completion

Unlike the Command Prompt, PowerShell might not display an explicit “Ok” message upon successful execution of this command. However, if the command runs without any error messages, it indicates that the Windows Firewall has been successfully reset to its default settings. You can verify the reset by checking the Firewall settings through the Control Panel or Windows Security app to confirm that they have been restored to default.

This PowerShell method offers another command-line approach to resetting your Windows Firewall. It is especially useful for users who are already working within a PowerShell environment or need to incorporate firewall reset into PowerShell scripts.

Related: loading

4. Restore Windows Firewall to Default via Windows Security

The Windows Security app, formerly known as Windows Defender Security Center, serves as a central hub for managing various security features in Windows 11, including the Firewall & network protection. Using the Windows Security app to reset the firewall is another graphical method, offering a modern interface integrated into the Windows 11 operating system. This method is convenient as it consolidates security settings in one place. Here’s how to restore the firewall to default through Windows Security:

Step 1: Open Windows Security

To access Windows Security, click on the Windows 11 search bar and type “Windows Security”. Select Windows Security from the search results to open the application. Alternatively, you can find the Windows Security icon in the system tray (notification area) and click on it.

Open Windows Security

Step 2: Navigate to Firewall & network protection

In the Windows Security app window, you will see several security categories listed. Click on the Firewall & network protection tile. This section provides access to settings and status information related to the Windows Firewall.

Firewall & network protection

Step 3: Restore Firewalls to default

On the Firewall & network protection page, look for the Restore firewalls to default link. It is usually located towards the bottom of the page under the “Firewall settings” section. Click on this link to initiate the firewall reset process.

Restore firewalls to default link

Step 4: Confirm and Restore

After clicking “Restore firewalls to default,” a confirmation window will appear. In this window, you will see a Restore Defaults button. Click on this button to confirm your decision and proceed with resetting the Windows Defender Firewall to its default settings.

Restore Defaults Button Windows Security

Upon clicking the “Restore Defaults” button, Windows Security will restore the firewall configuration to its original default state. All custom rules and settings will be removed, and the firewall will function based on its default rules. This method is a user-friendly way to reset your firewall through the modern Windows Security interface.

5. Reset Firewall Settings Windows 11 Using Advanced Security Tool

For more granular control and advanced firewall management, Windows 11 provides the “Windows Defender Firewall with Advanced Security” tool. This tool offers a more in-depth interface for configuring and managing firewall rules. Resetting the firewall through this advanced tool ensures that all aspects of the firewall policy, including inbound and outbound rules, are reverted to their defaults. This method is particularly useful for advanced users or administrators who need precise control over firewall settings. Here’s how to reset using the Advanced Security Tool:

Step 1: Open Windows Defender Firewall with Advanced Security

To open this tool, press the Windows Key + R keys simultaneously to open the Run dialog box. In the Run dialog box, type wf.msc and press Enter or click OK. This command directly launches the “Windows Defender Firewall with Advanced Security” management console.

Run wf.msc command

Step 2: Restore Default Policy

In the “Windows Defender Firewall with Advanced Security” console, you will see “Windows Defender Firewall with Advanced Security on Local Computer” in the left pane. Right-click on this option. From the context menu that appears, select Restore Default Policy. This option is specifically designed to reset all firewall settings to their original defaults within the advanced security tool.

Restore Default Policy Option

Step 3: Confirm the Action

After selecting “Restore Default Policy,” a confirmation dialog box may appear, asking if you are sure you want to restore the default policy. Confirm your action by clicking Yes or OK to proceed.

Confirm Restore Default Policy

Once you confirm, the “Windows Defender Firewall with Advanced Security” tool will immediately reset all firewall settings to their default values. This includes inbound rules, outbound rules, connection security rules, and all other advanced configurations. This method provides a comprehensive reset of the firewall settings using the most advanced management tool available in Windows 11.


Resetting your Windows Firewall to its default settings is a straightforward process that can be accomplished through various methods in Windows 11. Whether you prefer using the Control Panel, Command Prompt, PowerShell, Windows Security app, or the Advanced Security Tool, the steps are relatively simple and effective. Restoring the default settings can be beneficial when you want to start fresh with your firewall configuration, resolve potential rule conflicts, or ensure a secure baseline for your system’s network protection. However, remember that resetting the firewall will remove all custom rules you have created, so ensure you understand the implications before proceeding.

If you found this guide helpful or have any questions about resetting your Windows 11 Firewall, feel free to leave a comment below. Your experiences and questions are valuable to our community!

Post a Comment