[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


Getting Started with Server Core - Networking Commands

Published on
25,566 Points
2 Endorsements
Last Modified:
The purpose of this article is not to give you every last detail to Server Core but to provide you with what you need to know it get it up and running in your environment in particular to networking commands.  I will be writing other articles that go over other topics shortly.

Here is the start of you Networking and Firewall related commands for Server Core.  To configure the IP address you will have to remember (or learn) Netsh.  In my example I use "Local Area Connection"  The quotes are needed due the spaces.  If you renamed your connection name then you will want to use the new name in its place.

Configure a Static IP Address on Server Core:
Netsh int ipv4 set address Local Area Connection static
Netsh int ipv4 set dnsserver Local Area Connection static primary
Netsh int ipv4 set winsserver Local Area Connection static primary

Configure a Dynamic (DHCP) IP Address on Server Core:
Netsh int ipv4 set address Local Area Connection source=dhcp

Change the name of the network interface on Server Core:
Netsh int set interface name = Local Area Connection newname = Primary Network 

The Windows Firewall is a blessing to some and a curse to others. Either way it is installed by default and you have to understand the commands that are needed to configure the basics and in some cases some advanced commands.

Disable firewall:
netsh firewall set opmode disable

Server Core can be managed by using MMCs from a remote server. However with the firewall being on by default you will have to allow these tools to work remotely.  The first thing to note here is how to translate the MMC Snap-in to Windows Firewall Rule Group.

Event Viewer - Windows Firewall Rule Group - Remote Event Log Management
Services - Windows Firewall Rule Group - Remote Services Management
Shared Folders - Windows Firewall Rule Group - File and Printer Sharing
Task Scheduler - Windows Firewall Rule Group - Remote Scheduled Tasks Management
Reliability and Performance - Windows Firewall Rule Group - Performance Logs and Alerts and Windows Firewall Rule Group - File and Printer Sharing
Disk Management - Windows Firewall Rule Group - Remote Volume Management
Windows Firewall with Advanced Security - Windows Firewall Rule Group - Windows Firewall Remote Management

To enable all of these rules follow use this command:
Netsh advfirewall firewall set rule group=remote administration new enable=yes

Feel free to add your own Networking related commands.  


Expert Comment

by:Pall Palsson
For those who are starting out there Server Core journey i would actually recommend looking at a powershell program called Core Configurator 2.0
LVL 20

Author Comment

I 100% agree Maritech...this article was written before that tool came out.  Of course it is nice to learn some of the commands to impress management. :)

Featured Post

10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month