Server Core has no GUI tool to perform tasks related to firewall. You need to use NetSH command line tool to make changed to the Windows Firewall. This article lists the useful NetSH commands for Windows Firewall:
NetSH ADVFirewall
The above command is used to list switches available for Windows Firewall operation.
There are three Firewall Profiles configured on Windows Vista and Windows Server 2008. To check the status of Windows Firewall for all three profiles, issue the following commands:
NetSH ADVFirewall Show Allprofiles
The State column will show the firewall status: ON | OFF.
To turn Windows Firewall on for all profiles, issue the following command:
NetSH ADVFirewall Set Allprofiles State ON
Use OFF switch to turn the firewall off with above command.
To reset the Windows Firewall and configure with the default parameters, use the following command:
NetSH ADVFirewall Set Allprofiles FirewallPolicy BlockInbound,AllowOutbound
To enable/disable a specific feature, use the following command: In below example, the Remote Management (WinRM) feature will be enabled.
NetSH ADVFirewall Set AllProfiles Settings remotemanagement Enable / DIsable