In this article, I’ll show you how to disable the Windows Firewall on Windows Server Core 2016 using PowerShell.
With Microsoft announcement regarding Windows Server Core becoming the recommended Server OS for most deployment, you probably will need to know how to disable the firewall on your Server Core.
Disable Server Core Firewall
To get started, I’ll be using PowerShell ISE remote tabs to connect to my Server Core

You could also use the PowerShell console and connect using Enter-Pssession
I run the cmdlet below to check the status of all the Firewall profiles
Get-NetFirewallProfile

To disable the Firewall run the cmdlet below
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled false

To enable the firewall again run
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled true
YouTube Video
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.