Home > Configuring Windows Server 2008 Server Core
Chapter Excerpt:
EMAIL THIS

Configuring Windows Server 2008 Server Core

14 Oct 2009 | J. Peter Bruzzese, Ronald Barrett and Wayne Dipchan, Sams Publishing

Systems Channel Update
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

Configure Server Core Postinstallation

About the book:
This chapter excerpt on how to Configure and Manage Server Core (download PDF) is taken from the book Windows Server 2008 How-To.This book offers information on every essential element to Windows Server 2008, including the necessary steps and procedures for planning, deployment, configuration, security, and day-to-day administration. There are sections that focus on the R2 release and all major enhancements built into Windows Server 2008, including Hyper-V virtualization, Server Core, major Terminal Services improvements and more.

Scenario/Problem: Server Core is installed, and the command prompt is up, but where do you go from here? How do you make the necessary configuration changes to the system?

Solution: First, it may be comforting to know that there are some GUI tools you might be able to use. For example, type taskmgr, and you see the familiar Task Manager, which tells you how your server is doing. You can also use Notepad, although you might prefer to use one of the two Control Panel applets that are still available to you in GUI format. Type timedate.cpl (for the Date and Time applet) or intl.cpl (for the Regional and Language Options applet). These were allowed to stay in Server Core because they do not interfere with security, and they make configuring certain aspects of the OS easier.

Note: If you accidentally close your command prompt, you can retrieve it by pressing Ctrl+Alt+Delete, choosing Task Manager, and then clicking File, Run and typing cmd.exe.

Configuration Commands

Now, what would you normally need to do to configure a traditional server? Most likely, the following would come to mind:

  • Changing the computer name
  • Configuring network interfaces
  • Joining the domain
  • Installing (and activating) the license key
  • Enabling the firewall
  • Installing roles and/or features
  • Adding hardware
  • Configuring Windows Update

To perform these tasks, you need to become familiar (or refamiliarize yourself) with the following commands:

  • Netsh: For many IP configuration settings. See http://support.microsoft.com/ kb/242468.
  • Net User: To change the administrative password. See http://support.microsoft.com/kb/251394.
  • Netdom: To change the server name and/or join a domain. See http://technet.microsoft.com/en-us/library/cc776879.aspx.
  • Shutdown: For after a configuration change, when you need to restart your system. See http://support.microsoft.com/kb/317371.
  • Slmgr: The Software License Management tool, for installing and activating the license for the system. See http://support.microsoft.com/kb/555965/en-us.
  • Pnputil: To help you install device drivers that aren't automatically included with Windows Server 2008. See http://support.microsoft.com/kb/937793.
  • SCRegEdit.wsf: Enable Remote Desktop, automatic updates, terminal server client connections, and more. See http://support.microsoft.com/kb/555964/en-us.

Note: For some of these commands to work, you might have to change your directory to c:WindowsSystem32i.

Let's look at how you might use these commands to make changes in Server Core.

To change the computer name, you would perform the following steps:

  1. Locate the current name of the server by typing hostname or ipconfig.
  2. Type netdom renamecomputer <ComputerName> /NewName <NewComputerName>.
  3. Restart the computer, which you can do by using the shutdown command.

To make changes to the static IP settings on the server, you first need to identify your network interfaces. The netsh command is your friend in this case:

netsh interface ipv4 show interfaces

Make a note of the number in the Idx column for your network adapter(s). Then type the following:

Netsh interface ipv4 set address name="<Id>" source=static address=<the

  • static IP you are setting> mask=<the subnet mask for that

  • address> gateway=<the default gateway for that address>

If you want to use DHCP, you can type source=dhcp.

To configure your DNS settings, you need to perform an additional step with Netsh and type the following:

Netsh interface ipv4 add dnsserver name=<interface

  • name> address=< DNS Server IP Address> index=1

where index is the interface number.

To join your domain you would type this:

Netdom join <Name of Your Computer> /domain: <Name of Your

  • Domain> /userd: <UserName> /passwordd:*

Make sure to use a domain account that has permission in the domain to join computers to the domain. You can enter a password when you're prompted for one.

Before you activate, you are going to want to make sure you put in a license key. You may have done this during the installation process, but if you didn't, you need to now type the following:

Slmgr.vbs -ipk <License Key>

If you want to activate the server, you type the following:

Slmgr.vbs -ato

To configure the firewall, you use the netsh advfirewall command, although this takes a bit of work. A better method may be to take the Firewall snap-in from a system running Windows Vista or Windows Server 2008 and configure the settings remotely. However, you first need to enable remote management of the firewall by typing the following:

Netsh advfirewall set currentprofile settings remotemanagement enable

Moving on to the installation of hardware, you may find that simply plugging it in will work because the driver may be included with Windows Server 2008. If that is the case, you can install the hardware, and you are all set. If that is not the case, perform the following:

  1. Copy the driver files to the Server Core system. To do this, from the command prompt type the following:
  2. pnputil -i -a <Name of the INF file for the driver>

    Note: If your old DOS skills are a little rusty, it's time to start shaking the dust off some of those DOS books in your library…or just do a quick search online for basic DOS commands, such as copy.

  3. If you want to see a list of drivers on the system, type the following:

    sc query type=driver

  4. While there are many other configuration commands you might want to investigate and use, for now, use the following to enable automatic updates:

    cscript scregedit.wsf /AU /4

About the authors:
J. Peter Bruzzese is a network specialist with eight years of experience in the information technology sector. Bruzzese helped form Clip Training LLC, which offers a variety of mini clips on topics from Windows operating systems to server applications.

Ronald Barrett is an independent consultant, trainer, author and tech speaker whose previous clients include Goldman Sachs, Microsoft, New Horizons and ONLC.com. Barrett has co-authored several books, including Administrator's Guide to Microsoft Office 2007 Servers and contributes regularly to Redmond magazine.

Wayne Dipchan is the author of McSe Windows 2000 Directory Services Design and is a certified SQL database administrator. Dipchan is also a server expert for New Horizons, Bear Stearns and General Electric Company.

Note: The 4 in this command is to automatically download and install updates. There are other options in the GUI portion, and they are represented at the command prompt by other numbers; however, they don't work with a Server Core server.

Note: If configuring Server Core through the command line is not your cup of tea, you might consider searching for GUI alternatives. Several of them have been developed to make your life easier. One such tool, the Windows 2008 Server Core Configurator, is a collection of scripts that allows you to do all the tasks just discussed. You can locate this tool at www.codeplex.com/CoreConfig.

Install Roles and Features

While you may initially think of using Server Manager to install roles and features in Windows Server 2008, this console is not provided under Server Core. You therefore need to use the ocsetup.exe command.

The first thing you might want to do is see a list of the roles and features that are currently installed. To do this, simply type oclist.exe at the command prompt. Figure 2.3 shows the list that is returned.

FIGURE 2.3
Viewing a list of installed roles and features.

Using this list, you can now use the ocsetup.exe command to install roles and/or features by typing the following:

Start /w ocsetup "role/feature name"

Note: The role/feature name is case-sensitive. See the list you pull up with ocsetup.exe for the correct role/feature name capitalization.

For example, if you want to install the DNS Server role, you type the following:

Start /w ocsetup DNS-Server-Core-Role

Note: The /w prevents you from seeing the command prompt until the operation is complete. Therefore, if you see the command prompt, you know that the installation succeeded.

Note: Installing Active Directory is a little different in Server Core than in Windows Server 2008. Much as in the full installation version of Windows Server 2008, you would still use dcpromo to install Active Directory. However, you cannot use the wizards as you would ordinarily do. Instead, you need to use an unattend file. Microsoft recommends that you run dcpromo on another server running Windows Server 2008 and create the unattend file for the installation. To install the role, you then type dcpromo /unattend:.

When you install Server Core, the Server service is installed by default, but there are additional file service features you might want to add, such as the following:

  • File Replication Service (FRS-Infrastructure)
  • Distributed File System service (DFSN-Server)
  • Distributed File System Replication (DFSR-Infrastructure-ServerEdition)
  • Services for Network File System (both ServerforNFS-Base and ClientForNFS-Base)

In addition to the roles you can install, Server Core supports the following optional features:

  • Failover clustering (FailoverCluster-Core)
  • Network load balancing (NetworkLoadBalancingHeadlessServer)
  • Subsystem for UNIX-based applications (SUACore)
  • Backup (WindowsServerBackup)
  • Multipath I/O (MultipathIo)
  • Removable storage (Microsoft-Windows-RemovableStorageManagementCore)
  • BitLocker drive encryption (BitLocker)
  • Simple Network Management Protocol (SNMP) (SNMP-SC)
  • Windows Internet Name Service (WINS) (WINS-SC)
  • Telnet client (TelnetClient)

Installing features is very similar to installing roles. In this case, you type Start /w ocsetup (remembering that the feature name is case-sensitive).


Configure and Manage Server Core
  Windows Server 2008 Server Core installation
  Configuring Windows Server 2008 Server Core
  Windows Server 2008 Server Core management options
  Windows Server 2008 R2 Server Core changes and administration

Printed with permission from Sams Publishing. Copyright 2009. Windows Server 2008 How-To by J. Peter Bruzzese, Ronald Barrett and Wayne Dipchan. For more information about this title and other similar books, please visit Sams Publishing.



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Configuration Management Systems and Tools
Using System Center Configuration Manager 2007 tools
Distributed Power Management in vSphere cuts energy costs
Managed Objects Partner Program Checklist
Configuring Unix and Linux printers for SMBs
Unix and Linux printing services: Understanding SMB printer needs
Vista migration tools "unlikely to boost sales"
Deploying service support for systems management
Elements of service support
Service-oriented management in the channel
Configuration management

Server Installation and Upgrades
Installing and managing Hyper-V on Windows Server 2008 Server Core
Microsoft System Center Configuration Manager 2007 pre-installation tips
Microsoft System Center Configuration Manager 2007 installation steps
VMware extends vSphere Enterprise Edition availability
Windows Server 2008 Server Core installation
Upgrading to energy-efficient servers
Planning a SharePoint 2003 to SharePoint 2007 migration
SharePoint 2003 to SharePoint 2007 pre-migration tasks
Server virtualization technology guide
Determining a SharePoint Server 2007 upgrade migration plan

Microsoft Windows Server Operating Systems
Installing and managing Hyper-V on Windows Server 2008 Server Core
Using Hyper-V Manager to create virtual machines and hard drives
Monitoring Hyper-V performance and utilizing System Center VMM
Windows Server 2008 Server Core installation
Windows Server 2008 Server Core management options
Windows Server 2008 R2 Server Core changes and administration
Active Directory voted best Windows Server 2008 R2 feature
Google Chrome OS gains credibility with VMware
Microsoft Hyper-V study guide: Benefits and requirements
Microsoft partners offer discounts on Windows 7 Professional

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


HomeNewsTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogsEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2006 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts