WiseCleaner Think Tank
Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.
Jun 18, 2026
Windows Defender Firewall is a built-in security feature that helps protect your computer from unauthorized access and malicious network traffic. While keeping the firewall enabled is strongly recommended, there may be situations where you need to temporarily disable it for troubleshooting, testing network connections, or resolving software conflicts. This guide explains several ways to disable the firewall in Windows 11.
This is the easiest method for most users.
1. Click on Start and search for Windows Security, then click Open.
2. Navigate to the Firewall & network protection.
3. You will see your active network profiles: Domain network, Private network, and Public network. Click on the active network profile, toggle Microsoft Defender Firewall to Off. Repeat this process for each active network profile to completely disable the firewall.
Control Panel provides another straightforward way to manage firewall settings.
1. Press Win + R, type control, and press Enter to open the Control Panel.
2. Navigate to the System and Security > Windows Defender Firewall.
3. Click Turn Windows Defender Firewall on or off from the left panel. 
4. Under both Private network settings and Public network settings, select Turn off Windows Defender Firewall (not recommended).
5. Click OK to save your changes.
Advanced users can use Command Prompt to quickly disable the firewall.
1. Click on Start and search for Command Prompt. Right-click it and select Run as administrator.
2. In the Command Prompt window, type the following command and press Enter to disable it for all network profiles.
netsh advfirewall set allprofiles state off
If you want to disable it for the public network profile, type the following command and press Enter:
netsh advfirewall set publicprofile state off
If you want to disable it for the private network profile, type the following command and press Enter:
netsh advfirewall set privateprofile state off
If you want to disable it for the domain network profile, type the following command and press Enter:
netsh advfirewall set domainprofile state off
To re-enable the firewall later, use the same command with on instead of off:
netsh advfirewall set allprofiles state on
For advanced users who prefer the command line:
1. Click on Start and search for PowerShell. Right-click it and select Run as administrator.
To disable the firewall for all profiles, run:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
To re-enable the firewall:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
This method is available in Windows 11 Pro, Enterprise, and Education editions.
1. Press Win + R. Type gpedit.msc and click OK.
2. Navigate to:
Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall > Standard Profile
3. Double-click Windows Defender Firewall: Protect all network connections. 
4. Select Disabled, then click Apply and OK.
The Windows Defender Firewall is your first line of defense against network-based attacks. Only disable it when absolutely necessary, and always turn it back on as soon as your task is complete. If you're troubleshooting a specific application, consider creating an allow rule for that application.
wisecleaner uses cookies to improve content and ensure you get the best experience on our website. Continue to browse our website agreeing to our privacy policy.
I Accept