If you want to disable/enable Firewall in Windows server, there are 2 basic methods to do it. Please follow the method that is easier for you
Method 1. Via Server Manager
1.1 Disable Windows Firewall via Server Manager
If you want to disable Windows Firewall, please follow the following steps in 1.1
Step 1: Login to your Windows server, search and open Server Manager
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-26-1024x640.png)
Step 2: Navigate to Local Server tab and Click on Public: On from Windows Defender Firewall
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-27-1024x640.png)
Step 3: Click on Domain Network, turn off Windows Defender Firewall, then go back
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-28-1024x640.png)
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-30-1024x640.png)
Step 4: Click on Private Network, turn off Windows Defender Firewall, then go back
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-31-1024x640.png)
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-32-1024x640.png)
Step 5: Click on Public Network, turn off Windows Defender Firewall, then go back
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-33-1024x640.png)
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-34-1024x640.png)
Your server Windows Firewall (Domain Network, Private Network, Public network) is now disabled
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-35-1024x640.png)
1.2 Enable Windows Firewall via Server Manager
If you want to enable Windows Firewall, please do the same when disabling Windows Firewall as above but instead of disabling it, please enable it
![](https://howto.hyonix.com/wp-content/uploads/2024/04/image-37-1024x640.png)
Method 2. Via PowerShell
2.1 Disable Windows Firewall via PowerShell
Step 1: Login to your Windows server and open Windows PowerShell
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-13-1024x600.png)
Step 2: If you want to DISABLE Firewall, please run the following command:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled false
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-14-1024x599.png)
Then hit enter, you will see Firewall is now disabled
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-15.png)
2.2 Enable Windows Firewall via PowerShell
Step 1: Open Windows PowerShell
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-13-1024x600.png)
Step 2: If you want to ENABLE Firewall, please run the following command:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled true
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-16.png)
Then hit enter, you will see Firewall is now Enabled
![](https://howto.hyonix.com/wp-content/uploads/2023/07/image-17.png)