This step-by-step guide provides instructions for building a server in your test lab that is based on the Server Core installation option of the Windows Server® 2008 operating system. It includes information about installation, initial configuration, and managing a server that is running a Server Core installation.
The Server Core installation option is a new option that you can use for installing Windows Server 2008. A Server Core installation provides a minimal environment for running specific server roles, which reduces the maintenance and management requirements and the attack surface for those server roles. A server running a Server Core installation supports the following server roles:
| • | Active Directory Domain Services (AD DS) |
| • | Active Directory Lightweight Directory Services (AD LDS) |
| • | DHCP Server |
| • | DNS Server |
| • | File Services |
| • | Hyper-V |
| • | Print Services |
| • | Streaming Media Services |
| • | Web Server (IIS) |
To accomplish this, the Server Core installation option installs only the subset of the binary files that are required by the supported server roles. For example, the Explorer shell is not installed as part of a Server Core installation. Instead, the default user interface for a server running a Server Core installation is the command prompt.
The Server Core installation option of Windows Server 2008 requires initial configuration at a command prompt. A Server Core installation does not include the traditional full graphical user interface. Once you have configured the server, you can manage it locally at a command prompt or remotely using a Terminal Server connection. You can also manage the server remotely using the Microsoft Management Console (MMC) or command-line tools that support remote use.
The target audience for the Server Core installation option of Windows Server 2008 includes:
| • | IT planners and analysts who are technically evaluating the product. |
| • | Enterprise IT planners and designers for organizations. |
| • | IT professionals who are managing the AD DS, AD LDS, DHCP Server, DNS Server, File Services, Print Services, Streaming Media Services, and Web Server (IIS) roles. |
The Server Core installation option of Windows Server 2008 provides the following benefits:
| • | Reduced maintenance. Because the Server Core installation option installs only what is required to have a manageable server for the AD DS, AD LDS, DHCP Server, DNS Server, File Services, Print Services, and Streaming Media Services roles, less maintenance is required than on a full installation of Windows Server 2008. |
| • | Reduced attack surface. Because Server Core installations are minimal, there are fewer applications running on the server, which decreases the attack surface. |
| • | Reduced management. Because fewer applications and services are installed on a server running the Server Core installation, there is less to manage. |
| • | Less disk space required. A Server Core installation requires only about 1 gigabyte (GB) of disk space to install and approximately 2 GB for operations after the installation. |
In this scenario, you will create a server running a Server Core installation. There are no special settings or differences between installing Windows Server 2008 and a Server Core installation.
To complete this task, you will need the following:
| • | The Windows Server 2008 installation media |
| • | A valid product key |
| • | A computer on which you can perform a clean Server Core installation |
| • | There is no way to upgrade from a previous version of the Windows Server operating system to a Server Core installation. Only a clean installation is supported. |
| • | There is no way to upgrade from a full installation of Windows Server 2008 to a Server Core installation. Only a clean installation is supported. |
| • | There is no way to upgrade from a Server Core installation to a full installation of Windows Server 2008. If you need the Windows® user interface or a server role that is not supported in a Server Core installation, you will need to install a full installation of Windows Server 2008. |
Follow this procedure to install a Server Core installation of Windows Server 2008.
To install a Server Core installation | |||||||||
|
Using an unattend file for a Server Core installation enables you to perform most of the initial configuration tasks during Setup. Performing an unattended Server Core installation provides the following benefits:
| • | There is no need to perform the initial configuration by using command-line tools. |
| • | You can include the settings in the unattend file to enable remote administration (when Setup is complete). |
| • | You can configure settings that cannot be easily modified at a command prompt, such as display resolution. |
To install a Server Core installation by using an unattend file | |||||||||||||||||||
|
Because a Server Core installation does not include the Windows user interface, there is no "out-of-box experience" to help you complete the server configuration. Instead you must manually complete the configuration using the command-line tools as outlined in the following steps.
| |
You can use an unattended setup to configure these settings during installation. For more information about unattended settings, see the Windows Automated Installation Kit (Windows AIK) (http://go.microsoft.com/fwlink/?LinkId=81030). |
If you are going to join a server running a Server Core installation to an existing Windows domain, you need a user name and password for an account that has the administrative credentials to join a computer to the domain.
| • | If you close all command prompts, you will have no way to manage the Server Core installation. To recover, you can press CTRL+ALT+DELETE, click Start Task Manager, click File, click Run, and type cmd.exe. Alternatively, you can log off and log back on again. |
| • | Because there is no Web browser, you cannot activate a Server Core installation or access the Internet through a firewall that requires users to log on. |
The following procedures explain how to configure a computer running a Server Core installation. The steps include:
| • | Setting the administrative password |
| • | Setting a static IP address |
| |
A DHCP address is provided by default. You should perform this procedure only if you need to set a static IP address. |
| • | Joining a domain |
| • | Activating the server |
| • | Configuring the firewall |
To set the administrative password | |||||||
|
To set a static IP address | |||||||||||
|
| |
If you set the static IP address on the wrong network adapter, you can change back to using the DHCP address supplied by using the following command: netsh interface ipv4 set address name="<ID>" source=dhcp where ID is the number of the network adapter from Step 2. |
To join a domain | |||||||||
|
To rename the server | |||||||
|
To activate the server | |||||
| |||||
| |
You can also activate by phone, using a Key Management Service (KMS) server, or remotely by typing the following command at a command prompt of a computer that is running Windows Vista or Windows Server 2008: cscript windows\system32\slmgr.vbs <ServerName> <UserName> <password>:-ato |
To configure the firewall | |||
|
| |
You can also use the Windows Firewall snap-in from a computer running Windows Vista or Windows Server 2008 to remotely manage the firewall on a server running a Server Core installation. To do this, you must first enable remote management of the firewall by running the following command on the computer running a Server Core installation: netsh advfirewall set currentprofile settings remotemanagement enable |
After the Server Core installation is complete and the server is configured, you can install one or more server roles. The Server Core installation of Windows Server 2008 supports the following server roles:
| • | Active Directory Domain Services (AD DS) |
| • | Active Directory Lightweight Directory Services (AD LDS) |
| • | DHCP Server |
| • | DNS Server |
| • | File Services |
| • | Hyper-V |
| • | Print Services |
| • | Streaming Media Services |
| • | Web Server (IIS) |
More information about the command-line tools for configuring the server roles is available in the Additional references section at the end of this guide.
| |
This section includes a procedure for each server role in the previous list. You need to complete the procedure(s) for only the server roles that you want to install. |
To complete this task, you need the following:
| • | A computer on which you have installed and configured a Server Core installation of Windows Server 2008. |
| • | An administrator user account and password for the server running the Server Core installation. |
| • | If installing and configuring a print server, another computer running Windows Vista or Windows Server 2008 on which you can run the Print Management Console to remotely configure the print server. |
| • | If installing and configuring a DHCP server, the information required to configure a DHCP scope. |
| • | If installing and configuring a DHCP server, you must configure the server running the Server Core installation to use a static IP address. |
| • | If installing and configuring a DNS server, the information required to configure a DNS zone. |
| • | If installing and configuring an Active Directory environment, the information required to either join an existing domain or to create a new domain. |
| • | If you are going to promote the server running the Server Core installation to be a domain controller in an Active Directory domain, a domain administrator user name and password. |
| • | You cannot use the Active Directory Domain Controller Installation Wizard (Dcpromo.exe) on a server running Server Core installation. You must use an unattend file with Dcpromo.exe to install or remove the domain controller role. Alternately, you can run Dcpromo.exe on another computer running Windows Server 2008 and use the wizard to save an unattend file that you can then use on the server running Server Core installation. | ||||||||||||||||
| • | Dcpromo.exe will restart the computer immediately when the installation is complete or when Active Directory is removed unless RebootOnCompletion=No is included in the answer file. | ||||||||||||||||
| • | The Web Server (IIS) role does not support ASP.NET in Server Core installations. Because there is no support for managed code, the following IIS features are not available in Server Core installations:
|
To install a server role on a Server Core installation of Windows Server 2008, perform the procedure for the desired role as follows.
| |
Ocsetup.exe syntax is case sensitive so be sure to follow the examples explicitly. |
To discover the available server roles, open a command prompt and type the following:
oclist
This command lists the server roles and optional features that are available for use with Ocsetup.exe. It also lists the server roles and optional features that are currently installed.
To install the DNS Server role | |||||||||
|
| |
Typing start /w ocsetup DNS-Server-Core-Role /uninstall at the command prompt will uninstall the DNS Server role. |
To install the DHCP Server role | |||||||
|
The DHCP Server service does not start automatically by default. Use the following procedure to configure it to start automatically and to start the service for the first time.
To configure and start the DHCP Server service | |||||
|
| |
Typing start /w ocsetup DHCPServerCore /uninstall at the command prompt will uninstall the DHCP Server role. |
The Server service is installed by default to provide administrative share support for management tools. To install additional file server features use the following commands:
To install File Services role features | |||||||||
|
| |
Uninstall any file server role options by using these commands with the /uninstall option. |
To install the Hyper-V role, at a command prompt, type:
start /w ocsetup Microsoft-Hyper-V
To manage Hyper-V on a Server Core installation, use the Hyper-V management tools to manage the server remotely. These tools are available for Windows Server 2008 and Windows Vista Service Pack 1.
For more information see article 949219 (http://go.microsoft.com/fwlink/?LinkId=115098) and article 949758 (http://go.microsoft.com/fwlink/?LinkId=115100) in the Microsoft Knowledge Base.
To install Print Services role features | |||||
|
To add a printer to the print server | |||||||||||||||||||
|
To install the AD LDS role | |||
|
| |
Uninstall the AD LDS role by typing the following at a command prompt: start /w ocsetup DirectoryServices-ADAM-ServerCore /uninstall |
This command installs the Active Directory Domain Services role and promotes the server to a domain controller by using the settings in the unattend file.
For links to information about using an unattend file with Dcpromo.exe, see the Additional References section at the end of this document.
To install the Active Directory Domain Services role | |||
|
| |
Dcpromo.exe can also be used to demote a domain controller to a server. |
To install the Streaming Media Services role | |||||||||||
|
To install the Web Server role | |||||
|
| |
To uninstall the Web Server (IIS) role, use the following command: start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel |
After the Server Core installation is complete and the server is configured, you can install one or more optional features. The Server Core installation of Windows Server 2008 supports the following optional features:
| • | Failover Clustering |
| • | Network Load Balancing |
| • | Subsystem for UNIX-based applications |
| • | Backup |
| • | Multipath IO |
| • | Removable Storage |
| • | Bitlocker Drive Encryption |
| • | Simple Network Management Protocol (SNMP) |
| • | Windows Internet Name Service (WINS) |
| • | Telnet client |
The following procedure describes how to install these features on a server running a Server Core installation.
| |
Failover Clustering is not available in Windows Server 2008 Standard Edition. |
The following optional features require appropriate hardware:
| • | Failover Clustering |
| • | Network Load Balancing |
| • | Multipath IO |
| • | Removable Storage |
| • | Bitlocker Drive Encryption |
| |
For more information about the hardware that is required for optional features, see the Additional References section at the end of this document. |
There are no prerequisites for the following optional features:
| • | Subsystem for UNIX-based applications |
| • | Backup |
| • | Simple Network Management Protocol (SNMP) |
| • | Windows Internet Name Service (WINS) |
| • | Telnet client |
There are no known issues for installing an optional feature on a Server Core installation of Windows Server 2008.
To install an optional feature on a Server Core installation of Windows Server 2008, perform the following procedure.
| |
The Ocsetup.exe syntax is case sensitive so be sure to follow the examples explicitly. |
To discover the available optional features, open a command prompt and type the following:
Oclist
This command lists the server roles and optional features that are available for use with Ocsetup.exe. It also lists the server roles and optional features that are currently installed.
To install an optional feature | |||||||||||||||||||||||||||
|
| |
To remove an optional feature, use start /w ocsetup with the appropriate role name and the /uninstall switch. |
You can manage a server running Server Core installation in the following ways:
| • | Locally and remotely using a command prompt. By using the Windows command-line tools at a command prompt, you can manage servers running a Server Core installation. |
| • | Remotely using Terminal Server. By using another computer running Windows, you can use the Terminal Server client to connect to a server running a Server Core installation, and manage it remotely. The shell in the Terminal Server session will be the command prompt. |
| • | Remotely using Windows Remote Shell. By using another computer running Windows Vista or Windows Server 2008, you can use Windows Remote Shell to run command-line tools and scripts on a server running a Server Core installation. |
| • | Remotely using an MMC snap-in. By using an MMC snap-in from a computer running Windows Vista or Windows Server 2008, you can connect to a server running Server Core installation in the same way that you would connect to any computer running Windows. |
To manage a server running Server Core installation, you need:
| • | A computer that has a Server Core installation of Windows Server 2008 installed and configured. |
| • | An administrator user account and password for a server running a Server Core installation. |
| • | Not all tasks can be performed at a command prompt or remotely through an MMC snap-in. There is a script included with the Server Core installation of Windows Server 2008 that you can use to configure the following settings:
The script is located in the \Windows\System32 folder of a server running a Server Core installation. At a command prompt, open the folder, and then use the following command to display the usage instructions for the previous options: cscript scregedit.wsf /? |
| |
You can use this command with the /cli option to display a list of common command-line tools and their usage. |
| • | If you close all Command Prompt windows and want to open a new Command Prompt window, press CTRL+ALT+DELETE, click Start Task Manager, click File, click Run, and then type cmd.exe. Alternatively, you can log off and log back on. |
| • | Any command or tool that attempts to launch Windows Explorer will not work. For example, start . used from a command prompt will not work. |
| • | There is no support for HTML rendering or HTML help in Server Core installations. |
| • | Server Core installations do not support running managed code. Any management tools and utilities that run locally on a server running a Server Core installation must be written in native Win32 code. |
| • | Server Core installations do not generate any notifications for activation, new updates, or password expiration because these notifications require the Windows Explorer shell, which is not part of the Server Core installation. |
| • | If you need to write a script for managing a server running a Server Core installation, which requires the secure inclusion of an administrative password, see the scripting column on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkID=56421). |
| • | Server Core installations support Windows Installer in quiet mode so that you can install tools and utilities from Windows Installer files. |
| • | Windows Firewall can be configured at a command prompt by using netsh advfirewall. |
| • | When installing Windows Installer packages on a server running a Server Core installation, use the /qb option to display the basic user interface. |
| • | To change the time zone on a computer running a Server Core installation of Windows Server 2008, run control timedate.cpl. |
| • | To change international settings on a computer running a Server Core installation of Windows Server 2008, run control intl.cpl. |
| • | Control.exe will not run on its own. You must run it with either Timedate.cpl or Intl.cpl. |
| • | Winver.exe is not available in Server Core installations. To obtain version information use Systeminfo.exe. |
The following procedures explain methods for managing a server running a Server Core installation, including:
| • | Managing a server running a Server Core installation locally at a command prompt |
| • | Managing a server running a Server Core installation remotely at a command prompt |
| • | Managing a server running a Server Core installation by using Windows Remote Shell |
| • | Managing a server running a Server Core installation by using Microsoft Management Console (MMC) |
| • | Adding hardware to a server running a Server Core installation |
| • | Obtaining a list of drivers installed on a server running a Server Core installation |
| • | Installing the DNS server role |
To manage a server running a Server Core installation locally at a command prompt | |||||||
|
| |
For more information about command-line tools, see "Steps for administering a Server Core installation" later in this document. You can find further information at the Command-Line Reference A-Z (http://go.microsoft.com/fwlink/?LinkId=20331). |
To manage a server running a Server Core installation by using a terminal server | |||||||||||||
|
| |
If you are running the Terminal Services client on a previous version of Windows, you must turn off the higher security level that is set by default in Windows Server 2008. To do this, after step 1, type the following command at the command prompt: cscript C:\Windows\System32\Scregedit.wsf /cs 0 |
| |
For more information about command-line tools, see "Steps for administering a Server Core installation" later in this document. You can find further information at the Command-Line Reference A-Z (http://go.microsoft.com/fwlink/?LinkId=20331). |
Often it is useful to run Cmd.exe in a Command Prompt window on your local computer, rather than in the Terminal Services client. To do this, you need a standard Windows Server 2008 installation and the latest Terminal Services client.
To use TS RemoteApp to publish Cmd.exe to your local computer | |||||||||||
|
To manage a server running a Server Core installation by using the Windows Remote Shell | |||||
|
| |
The WinRM quickconfig setting enables a server running a Server Core installation to accept Windows Remote Shell connections. This setting can also be set in an unattend file. See the example in Appendix A at the end of this document. |
| |
For more information about using different security credentials to run commands, see the command-line help for WinRS.exe by typing winrs -? at a command prompt.
|
To manage a server that is running a Server Core installation and is a domain member using an MMC snap-in | |||||||||
|
To manage a server that is running a Server Core installation and is not a domain member using an MMC snap-in | |||||||||||||||
|
To configure Windows Firewall to allow MMC snap-in(s) to connect | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| |
Some MMC snap-ins do not have a corresponding rule group that allows them to connect through the firewall. However, enabling the rule groups for Event Viewer, Services, or Shared Folders will allow most other snap-ins to connect. Additionally, certain snap-ins require further configuration before they can connect through the firewall: |
| • | Device Manager. You must first enable the Allow remote access to the PnP interface policy setting. To do this, on a computer running Windows Vista or a full installation of Windows Server 2008, open the Local Group Policy Editor MMC snap-in, connect to the computer running a Server Core installation, navigate to Computer Configuration\Administrative Templates\Device Installation, and then enable Allow remote access to the PnP interface. Restart the computer running a Server Core installation. Note that when Device Manager is used remotely, it is read-only. |
| • | Disk Management. You must first start the Virtual Disk Service (VDS) on the computer running a Server Core installation. You must also configure the Disk Management rules appropriately on the computer that is running the MMC snap-in. |
| • | IP Security Monitor. You must first enable remote management of this snap-in. To do this, at a command prompt, type: Cscript \windows\system32\scregedit.wsf /im 1 |
| • | Reliability and Performance. The snap-in does not require any further configuration, but when you use it to monitor a computer running a Server Core installation, you can only monitor performance data. Reliability data is not available. |
To add hardware to a server running a Server Core installation | |||||||||||||
|
To obtain a list of drivers that are installed on the server running a Server Core installation | |||
|
| |
You must include the space after the equal sign for the command to complete successfully. |
To disable a device driver on a server running a Server Core installation | |||
|
This section focuses on common administrative tasks that are performed locally or remotely from a command prompt. The commands are grouped into the following sections:
| • | Configuration and installation |
| • | Networking and firewall |
| • | Updates and error reporting |
| • | Services, processes and performance |
| • | Event logs |
| • | Disk and file system |
| • | Hardware |
| • | Remote administration |
To complete this task, you need:
| • | A computer on which you have installed and configured a Server Core installation of Windows Server 2008 |
| • | An administrator user account and password for the server running a Server Core installation |
| • | Server Core installation supports Windows Installer in quiet mode so that you can install tools and utilities from Windows Installer files. |
| • | If you need to write a script for managing a server running a Server Core installation, which requires the secure inclusion of an administrative password, see the scripting column on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkID=56421). |
The following procedures summarize common administrator tasks for a server running a Server Core installation.
| Task | Steps | ||||
Set the local administrative password | At a command prompt, type: net user administrator * | ||||
Join a computer to a domain |
| ||||
Confirm that the domain has changed | At a command prompt, type: set | ||||
Remove a computer from a domain | At a command prompt, type: netdom remove | ||||
Add a user to the local Administrators group. | At a command prompt, type: net localgroup Administrators /add <domain>\<username> | ||||
Remove a user from the local Administrators group | At a command prompt, type: net localgroup Administrators /delete <domain\username> |