How to disable the Windows Defender Firewall on Windows 2022 Server

Drishti Gupta 0 Reputation points
2025-01-29T12:06:42.2533333+00:00

I am not able to manually turn off the firewall from the console that option is greyed out also I have tried below mentioned two solutions but still you can see in below screenshot firewall is on. Is there any other way we could try out?

Solution 1: Disable Firewall via Local Group Policy Editor

Open Local Group Policy Editor

  • Press Win + R, type gpedit.msc, and press Enter.

Navigate to Firewall Policy Settings

   CopyEdit
   Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall > Standard Profile
  - Repeat this step for **Domain Profile, Public Profile, and Private Profile**.
  
  **Modify the Policy**
  
     - Locate **“Windows Defender Firewall: Protect all network connections”**.
     
        - Double-click it, set it to **Disabled**, and click **OK**.
        
        **Force Policy Update**
        
           - Open **Command Prompt as Administrator** and run:
           
           ```yaml
           cmd
           CopyEdit
           gpupdate /force
           ```
           
              - If the firewall is still active, restart the server.
              

Solution 2: Disable Firewall via Registry Editor

If gpedit.msc is not available, modify the Windows Registry:

Open Registry Editor

  • Press Win + R, type regedit, and press Enter.

Navigate to Firewall Settings

   sql
   CopyEdit
   HKEY_LOCAL_MACHINE\

Modify the Registry Keys

  - Click on **StandardProfile**, **PublicProfile**, and **DomainProfile**.
  
     - Find the DWORD **`EnableFirewall`**.
     
        - Double-click it and set its value to **`0`**.
        
  1. Restart the Server for changes to take effect. Solution 1: Disable Firewall via Local Group Policy Editor
    1. Open Local Group Policy Editor
      • Press Win + R, type gpedit.msc, and press Enter.
    2. Navigate to Firewall Policy Settings
            
            Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall > Standard Profile
      
      • Repeat this step for Domain Profile, Public Profile, and Private Profile.
    3. Modify the Policy
      • Locate “Windows Defender Firewall: Protect all network connections”.
      • Double-click it, set it to Disabled, and click OK.
    4. Force Policy Update
      • Open Command Prompt as Administrator and run:
                gpupdate /force
        
      • If the firewall is still active, restart the server.
    Solution 2: Disable Firewall via Registry Editor If gpedit.msc is not available, modify the Windows Registry:
    1. Open Registry Editor
      • Press Win + R, type regedit, and press Enter.
    2. Navigate to Firewall Settings
            HKEY_LOCAL_MACHINE\
      
    3. Modify the Registry Keys
      • Click on StandardProfile, PublicProfile, and DomainProfile.
      • Find the DWORD EnableFirewall.
      • Double-click it and set its value to 0.
    4. Restart the Server for changes to take effect.
    User's image
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.