20,218 questions
How to disable the Windows Defender Firewall on Windows 2022 Server
Drishti Gupta
0
Reputation points
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
, typegpedit.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
, typeregedit
, 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`**.
- Restart the Server for changes to take effect. Solution 1: Disable Firewall via Local Group Policy Editor
- Open Local Group Policy Editor
- Press
Win + R
, typegpedit.msc
, and press Enter.
- Press
- 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.
- 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:
gpupdate /force
- If the firewall is still active, restart the server.
- Open Command Prompt as Administrator and run:
gpedit.msc
is not available, modify the Windows Registry:- Open Registry Editor
- Press
Win + R
, typeregedit
, and press Enter.
- Press
- Navigate to Firewall Settings
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
.
- Restart the Server for changes to take effect.
- Open Local Group Policy Editor
Windows for business | Windows Server | User experience | Other
Sign in to answer