Disable Firewall in Windows Server 2016

There are many ways to disable Windows Firewall in Windows Server 2016. Depending on the version of the Server, such as GUI, Core or Nano Server, you will need to apply one of the following methods to achieve this.

Disable Firewall from the GUI

Open the Control Panel, go to System and Security, and then click Windows Firewall. Here, click Turn Windows Firewall on or off.

Disable Firewall in Windows Server 2016

At this point, you can disable the Windows Firewall for the three network types such as Domain, Private, and Public, by enabling the Turn Off Windows Firewall option (not recommended) for each network type.

Disable Firewall in Windows Server 2016

Disable Firewall from PowerShell

First, it’s a good idea to know the current status of the Firewall on the server by typing the following command.

Get-NetFirewallProfile

Disable Firewall in Windows Server 2016

To disable Firewall for all network types, run the following cmdlet.

Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled False

To reactivate it, run the following cmdlet.

Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled True

Disable Firewall from the Command Prompt

To disable Firewall for all network types, type the following command.

netsh advfirewall set allprofiles state off

To re-enable the Firewall, type the following command.

netsh advfirewall set allprofiles state on
About Dimitris Tonias 143 Articles
My name is Dimitris Tonias, IT Pro, G(r)eek, focused on Server, Virtualization, and Cloud technologies.

1 Comment on Disable Firewall in Windows Server 2016

  1. Great article on Powershell the PS script was a life saver over the ridiculous GUI (Good Unintelligent Interface)

    Please feel free to send me any articles or news letters regarding PS scripting, I am still learning for both PS and PS for Exchange.

    Thank you again,

Leave a Reply

Your email address will not be published.


*