Professional Documents
Culture Documents
Server Core Installation Option of Windows Server 2008 and Windows Server 2008 R2 Getting Started Guide
Server Core Installation Option of Windows Server 2008 and Windows Server 2008 R2 Getting Started Guide
Abstract
This guide provides the instructions you need to build a server in your test lab based on the
Server Core installation option of either the Windows Server 2008 or Windows
Server 2008 R2 operating system. This includes installing and performing the initial
configuration of the Server Core installation, installing server roles or features, and managing a
server that is running a Server Core installation.
Copyright Information
Information in this document, including URL and other Internet Web site references, is subject to
change without notice. Unless otherwise noted, the companies, organizations, products, domain
names, e-mail addresses, logos, people, places, and events depicted in examples herein are
fictitious. No association with any real company, organization, product, domain name, e-mail
address, logo, person, place, or event is intended or should be inferred. Complying with all
applicable copyright laws is the responsibility of the user. Without limiting the rights under
copyright, no part of this document may be reproduced, stored in or introduced into a retrieval
system, or transmitted in any form or by any means (electronic, mechanical, photocopying,
recording, or otherwise), or for any purpose, without the express written permission of Microsoft
Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.
Active Directory, Microsoft, MS-DOS, Visual Basic, Visual Studio, Windows, Windows NT,
Windows Server, and Windows Vista are trademarks of the Microsoft group of companies.
Installing a server role on a server running a Server Core installation of Windows Server 2008:
Overview................................................................................................................................... 23
Installing a server role on a server running a Server Core installation of Windows Server 2008:
Overview................................................................................................................................ 23
Prerequisites for installing a server role on a server running Server Core installation...........23
Known issues for installing a server role on a Server Core installation..................................24
Steps for installing a server role on a Server Core installation...............................................24
Available server roles.......................................................................................................... 25
DNS Server role.................................................................................................................. 25
DHCP Server role............................................................................................................... 25
File Services role................................................................................................................ 26
Hyper-V role........................................................................................................................ 26
Print Services role............................................................................................................... 27
Active Directory Lightweight Directory Services role...........................................................27
Active Directory Domain Services role................................................................................28
Streaming Media Services role...........................................................................................28
Web Server (IIS) role.......................................................................................................... 28
Installing a server role on a server running a Server Core installation of Windows Server 2008 R2:
Overview................................................................................................................................... 29
Installing a server role on a server running a Server Core installation of Windows Server 2008
R2: Overview.......................................................................................................................... 29
Prerequisites for installing a server role on a server running a Server Core installation of
Windows Server 2008 R2................................................................................................... 30
Known issues for installing a server role on a Server Core installation of Windows Server
2008 R2.............................................................................................................................. 30
Steps for installing a server role on a Server Core installation of Windows Server 2008 R2. 31
Available server roles.......................................................................................................... 31
DNS Server role.................................................................................................................. 31
DHCP Server role............................................................................................................... 31
File Services role................................................................................................................ 32
Hyper-V role........................................................................................................................ 33
Streaming Media Services role...........................................................................................33
Print and Document Services role......................................................................................33
Active Directory Certificate Services...................................................................................34
Active Directory Lightweight Directory Services role...........................................................34
Active Directory Domain Services role................................................................................35
Web Server (IIS) role.......................................................................................................... 35
Installing Windows Features on a server running a Server Core installation of Windows Server
2008: Overview.......................................................................................................................... 37
Installing Windows Features on a server running a Server Core installation of Windows Server
2008: Overview...................................................................................................................... 37
Prerequisites for installing an optional feature on a server running a Server Core installation
............................................................................................................................................ 38
Known issues for installing an optional feature on a server running a Server Core installation
............................................................................................................................................ 38
Steps for installing an optional feature on a server running a Server Core installation..........39
Available optional features.................................................................................................. 39
Installing Windows Features on a server running a Server Core installation of Windows Server
2008 R2: Overview.................................................................................................................... 40
Installing Windows Features on a server running a Server Core installation of Windows Server
2008 R2: Overview................................................................................................................. 40
Prerequisites for installing an optional feature on a server running a Server Core installation
of Windows Server 2008 R2............................................................................................... 41
Known issues for installing an optional feature on a server running a Server Core installation
............................................................................................................................................ 41
Steps for installing an optional feature on a server running a Server Core installation..........42
Available optional features.................................................................................................. 42
Additional references.................................................................................................................... 63
Additional references................................................................................................................. 63
DHCP Server
DNS Server
File Services
Hyper-V
Print Services
A server running a Server Core installation of Windows Server 2008 R2 supports the following
server roles:
Active Directory Certificate Services
DHCP Server
DNS Server
8
File Services (including File Server Resource Manager)
Hyper-V
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.
Downloadable, printable job aids which include the most commonly used commands and
procedures for administering Server Core installations are available at
http://go.microsoft.com/fwlink/?LinkId=151984.
IT professionals who are managing any of the server roles supported in Server Core installations.
9
Reduced maintenance. Because the Server Core installation option installs only what is required to
have a manageable server for the supported 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 3.5 gigabytes (GB) of disk
space to install and approximately 3 GB for operations after the installation.
In this guide
Deploying a Server Core installation: Overview
Installing a server role on a server running a Server Core installation of Windows Server 2008:
Overview
Installing a server role on a server running a Server Core installation of Windows Server 2008 R2:
Overview
Installing Windows Features on a server running a Server Core installation of Windows Server 2008:
Overview
Installing Windows Features on a server running a Server Core installation of Windows Server 2008
R2: Overview
Additional references
10
Deploying a Server Core installation:
Overview
For Windows Server 2008, a valid product key. For Windows Server 2008 R2, you can complete Setup
without having the product key.
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.
4. After Setup completes, press CTRL+ALT+DELETE, click Other User, type Administrator
with a blank password, and then press ENTER. You will be prompted to set a password for
the Administrator account.
11
Note
As in Windows 7 and full installations of Windows Server 2008 R2, Setup no longer
prompts you to enter a product key. You should enter the product key using slmgr.vbs
before activating the installation.
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.
3. Boot your computer to Windows Preinstallation Environment (Windows PE), Windows Server 2003,
or Windows XP.
4. Insert the media disk with the Server Core installation of Windows Server 2008 or Windows
Server 2008 R2 into your disk drive. If the auto-run Setup window appears, click Cancel.
5. At a command prompt, change to the drive that contains the installation media.
setup /unattend:<path>\unattend.xml
where PATH is the path to your Unattend.xml file.
7. Allow Setup to complete.
Note
Appendix A of this document contains a sample unattend file with comments that
explain the settings in the sample configuration. This sample can be modified for use
in your environment.
12
Configuring a Server Core installation:
Overview
Note
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).
Administrative credentials
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.
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.
Note
A DHCP address is provided by default. You should perform this procedure only if you
need to set a static IP address.
13
Join a domain.
Configure several aspects with one tool (Windows Server 2008 R2 only).
2. The system will inform you that the password has expired and will prompt you to enter a new
password.
14
netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP> index=1
Where:
ID is the number from step 2 above.
DNSIP is the IP address of your DNS server.
5. Repeat step 4 for each DNS server that you want to set, incrementing the index= number each time.
Notes
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
1. At a command prompt, type:
3. If you need to add a domain user account to the local Administrators group, type the following
command:
shutdown /r /t 0
15
slmgr.vbs ipk<productkey>
Then, for both Windows Server 2008 R2 and Windows Server 2008, activate the server by
typing the following at a command prompt:
slmgr.vbs -ato
If activation is successful, no message will return in the command prompt.
Notes
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
Notes
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
2. Type Sconfig.cmd, and then press ENTER. The Server Configuration tool interface opens:
16
Domain/Workgroup settings
The current Domain/Workgroup settings are displayed in the default Server Configuration tool
screen.
17
3. Type the domain name and press ENTER.
Example: domain.corp.company.com
4. Type an authorized domain\user.
Example: domain\user1
5. When prompted, type a password for the user,
and then press ENTER.
6. You are prompted with You must restart your
computer to apply these changes. Restart
now? Click Yes to restart the computer.
Note
If a domain user has not been added to
the local administrators group, you will
not be able to make system changes,
such as changing the computer name,
by using the domain user. To add a
domain user to the local administrators
group, allow the computer to restart.
Next, log on to the computer as the
local administrator and follow the steps
in the Local administrator settings
section later in this document.
18
user and press ENTER.
e. You are prompted with You must restart
your computer to apply these
changes. Restart now? Click No.
f. Type 1 and press ENTER to configure the
Hyper-V Server workgroup name.
g. Type W and press ENTER.
h. Type the name of the workgroup to join,
and then press ENTER.
i. You are prompted with Welcome to the
workgroup: WORKGROUP NAME. Click
OK.
4. Type 11 and press ENTER to restart the
computer.
5. You are prompted with Are you sure you want
to restart? Click Yes.
19
your computer to apply these changes.
Restart now? Click Yes to restart.
To add a domain user to the local administrator 1. Type 3 and press ENTER.
group 2. Type the domain name and user name, and then
press ENTER.
Example: domain\domain user
3. You are prompted with User added to local
Administrators group DOMAIN\DOMAIN USER.
Click OK.
Note
To add a domain user to the local
administrator group, you must be
currently joined to a domain. See
the Domain/Workgroup settings
section earlier in this document.
Network settings
You can configure the IP address to be assigned automatically by a DHCP Server or you can
assign a static IP address manually.
2. You are presented with a list of available network adapters that are attached to the server.
20
3. Type the index number of the adapter that you want to configure, and then press ENTER.
4. You are presented with the current configuration for the network adapter that you selected.
5. Type 1 and press ENTER to configure the IP address for the selected network adapter.
To assign a static IP address to the network a. Type S, and then press ENTER to
adapter manually assign a static IP to the
network adapter.
b. Type the desired static IP address, and
then press ENTER.
c. Type the desired subnet mask, and
then press ENTER.
d. Type the desired default gateway, and
then press ENTER.
To configure DNS Server settings for the a. Type 2 and press ENTER.
selected network adapter b. Type the IP address of the desired
preferred DNS server, and then press
ENTER.
c. You are prompted with Preferred DNS
server set. Click OK.
d. Type the IP address of the desired
alternate DNS server, and then press
ENTER.
e. You are prompted with Alternate DNS
Server set. Click OK.
To clear the current DNS Server settings a. Type 3 and press ENTER.
b. You are prompted with DNS Servers
removed. DNS Servers will be
automatically obtained from network.
Click OK.
21
To set updates to automatic 1. Type 5 and press ENTER.
2. Type A and press ENTER to set updates to
automatic.
3. You are prompted with Windows Update
set to Automatic. System will check for and
install updates every day at 3:00AM. Click
OK.
4. You are returned to the Server
Configuration Tool and you will see
Automatic next to Windows Update
Settings.
Note
2. You are presented with a list of applicable updates. Type Y and press ENTER to download and install
all updates.
Note
Note
22
3. You are returned to the Server Configuration Tool, where you will see the current software update
status next to Download and Install Updates.
To enable Remote Desktop for clients running 1. Type 7 and press ENTER.
any version of Remote Desktop 2. Type 2 and press ENTER to allow clients
running any version of Remote Desktop
(less secure).
3. You are prompted with Remote Desktop
enabled for clients running any version
of Remote Desktop (less secure). Click
OK.
4. You are returned to the Server
Configuration Tool, where you will see
Enabled (all clients) next to Remote
Desktop.
23
Date and time settings
Follow these instructions to change the current date and time settings:
1. Type 9 and press ENTER to configure or modify the Date and Time options.
2. You are presented with the Date and Time options control panel.
3. When you are finished configuring Date and Time options, click OK to apply the changes or Cancel to
discard them.
24
To log off a user
1. Type 10 and press ENTER to log off the current user.
2. You are prompted with Are you sure you want to log off? Click Yes.
2. You are prompted with Are you sure you want to restart? Click Yes.
2. You will be prompted with Are you sure you want to shut down? Click Yes.
Note
To return to the Server Configuration Tool, type Sconfig.cmd, and then press ENTER.
DHCP Server
25
DNS Server
File Services
Hyper-V
Print Services
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.
Note
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.
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.
26
Known issues for installing a server role on a Server Core
installation
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 of Windows
Server 2008. Because there is no support for managed code, the following IIS features are not available
in Server Core installations of Windows Server 2008:
IIS-ASPNET
IIS-NetFxExtensibility
IIS-ManagementConsole
IIS-ManagementService
IIS-LegacySnapIn
IIS-FTPManagement
WAS-NetFxEnvironment
WAS-ConfigurationAPI
Note
27
DNS Server role
Note
Using /w prevents the command prompt from returning until the installation
completes. Without /w, there is no indication that the installation completed.
2. Configure a DNS zone at the command prompt by typing dnscmd or by remotely using the DNS MMC
snap-in.
Note
3. If the DHCP server is installed in an Active Directory domain, you must authorize it in Active
Directory.
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.
Note
Typing start /w ocsetup DHCPServerCore /uninstall at the command prompt will uninstall
the DHCP Server role.
28
File Services 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:
Note
Uninstall any file server role options by using these commands with the /uninstall option.
Hyper-V role
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.
To manage Hyper-V on a Server Core installation, use the Hyper-V management tools to manage
the server remotely. In Windows Server 2008 R2 and Windows 7, the management tools are
available as part of the Remote Server Administration Tools (RSAT) feature. In Windows
Server 2008 and Windows Vista Service Pack 1, you can download the tools from the following
locations:
2. Verify that the print server can communicate with the printer through the network by pinging
the printer from the print server.
3. On another computer running Windows Vista or Windows Server 2008, open the Print
Management console and add the server running the Server Core installation.
4. Expand the entry for the print server running a Server Core installation, right-click Drivers,
and then click Add Driver. The Add Printer Driver Wizard starts.
5. Complete the wizard to install the printer driver for your printer.
6. In the Print Management console, right-click Printers and then click Add Printer. The Network
Printer Installation Wizard starts.
7. Click Add a TCP/IP or Web Services printer by IP address or hostname and then click Next.
8. Enter the printer's host name or IP address (the port name will be the same by default), and
then click Next.
9. Make any necessary changes to the printer name, contact information, or sharing status, and
then click Next.
Notes
dcpromo /unattend:<unattendfile>
Where UNATTENDFILE is the name of a Dcpromo.exe unattend file.
Note
2. Copy the appropriate Microsoft Update Standalone package (.msu file) to your Server Core
installation.
Notes
To uninstall the Web Server (IIS) role, use the following command:
start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-
ProcessModel
DHCP Server
DNS Server
Hyper-V
32
Print and Document Services
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.
Note
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.
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, Windows
Server 2008, Windows 7, or Windows Server 2008 R2 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.
33
Alternately, you can run Dcpromo.exe on another computer running Windows Server 2008 R2
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 supports a subset of ASP.NET in Server Core installations of Windows
Server 2008 R2. For a list of the IIS features available in Server Core installations of Windows
Server 2008 R2, see Web Server (IIS) role.
Note
Note
34
DHCP Server role
3. If the DHCP server is installed in an Active Directory domain, you must authorize it in Active
Directory.
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.
Note
35
or:
Dism /online /enable-feature /featurename:ClientForNFS-Base,
depending on which you want to install.
Note
Uninstall any file server role options by using these commands with the /disable-feature
option instead of the /enable-feature option.
Hyper-V role
To install the Hyper-V role, at a command prompt, type:
Dism /online /enable-feature /featurename:Microsoft-Hyper-V
To manage Hyper-V on a Server Core installation, use the Hyper-V management tools to manage
the server remotely. In Windows Server 2008 R2 and Windows 7, the management tools are
available as part of the Remote Server Administration Tools (RSAT) feature. For information about
installing the RSAT feature for Windows 7, see http://go.microsoft.com/fwlink/?LinkId=192467.
In Windows Server 2008 and Windows Vista Service Pack 1, you can download the tools from
the following locations:
For 64-bit editions of Windows Vista with SP1, see http://go.microsoft.com/fwlink/?LinkId=123540.
2. Copy the Microsoft Update Standalone package (.msu file) to your Server Core installation.
36
Dism /online /enable-feature /featurename:Printing-ServerCore-Role
Notes
For 32-bit Print Server support type the following at a command prompt:
Dism /online /enable-feature /featurename:Printing-ServerCore-Role-WOW64
For the Line Printer Daemon (LPD) service, type:
2. Verify that the print server can communicate with the printer through the network by pinging
the printer from the print server.
4. Expand the entry for the print server running a Server Core installation, right-click Drivers,
and then click Add Driver. The Add Printer Driver Wizard starts.
5. Complete the wizard to install the printer driver for your printer.
6. In the Print Management console, right-click Printers and then click Add Printer. The Network
Printer Installation Wizard starts.
7. Click Add a TCP/IP or Web Services printer by IP address or hostname and then click Next.
8. Enter the printer's host name or IP address (the port name will be the same by default), and
then click Next.
9. Make any necessary changes to the printer name, contact information, or sharing status, and
then click Next.
Notes
37
Dism /online /disable-feature /featurename:CertificateServices
Notes
dcpromo /unattend:<unattendfile>
Where UNATTENDFILE is the name of a Dcpromo.exe unattend file.
Note
Note
IIS-ManagementService
38
IIS-PowerShellProvider
IIS-FTPExtensibility
IIS-WebDAV
WCF-HTTP-Activation
Notes
You can accomplish the same installation as the command above using Dism.exe, but
you must add /featurename: in front of each package name. For example:
Dism /online /enable-feature /featurename:IIS-WebServerRole /featurename:IIS-
WebServer /featurename:IIS-CommonHttpFeatures /featurename:IIS-StaticContent, and
so on.
To install ASP.NET
1. Type and run each of the following at a command prompt (in the order presented) and press ENTER
after each one:
39
2. Start Windows PowerShell by typing the following at a command prompt and pressing ENTER:
\windows\system32\WindowsPowerShell\v1.0\powershell.exe
3. Windows PowerShell opens. To import the IIS snap-in, type the following in Windows PowerShell:
import-module WebAdministration
4. Access the list of available IIS cmdlets by typing the following in Windows PowerShell:
For more information about managing IIS with Windows PowerShell, see
http://go.microsoft.com/fwlink/?LinkId=192468.
You can now connect to IIS from a remote computer using IIS Remote Manager. For more
information, see http://go.microsoft.com/fwlink/?LinkId=192469.
Notes
To uninstall the Web Server (IIS) role, use the following command:
start /w pkgmgr /uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-
ProcessModel
40
Installing Windows Features on a server
running a Server Core installation of
Windows Server 2008: Overview
Multipath IO
Removable Storage
Telnet client
QWAVE
The following procedure describes how to install these features on a server running a Server
Core installation.
Note
Multipath IO
Removable Storage
Note
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
Telnet client
QWAVE
Note
The Ocsetup.exe syntax is case sensitive so be sure to follow the examples explicitly.
Notes
To install the remote administration tool for BitLocker, type the following at a
command prompt:
start /w ocsetup BitLocker-RemoteAdminTool
Windows Server Backup: WindowsServerBackup
QWAVE: QWAVE
Note
To remove an optional feature, use start /w ocsetup with the appropriate role name and
the /uninstall switch.
43
Installing Windows Features on a server
running a Server Core installation of
Windows Server 2008 R2: Overview
Multipath IO
Telnet client
QWAVE
LINQ
Windows PowerShell
44
Best Practices Analyzer (BPA) cmdlets
WoW64
The following procedure describes how to install these features on a server running a Server
Core installation of Windows Server 2008 R2.
Note
Multipath IO
Note
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
Telnet client
QWAVE
BranchCache
.NET Framework
Windows PowerShell
45
WoW64
IME support
System.Deployment.Application
System.Diagnostics.Design
System.Media
System.Messaging.*
System.Speech.*
System.Windows.*
UIAutomationClientsideProviders
Microsoft.Aspnet.Snapin
Microsoft.Ink
Microsoft.ManagementConsole.*
Microsoft.StylusInput.*
Microsoft.VisualBasic.Compatibility.VB6
Microsoft.Windows.Themes
Microsoft.WindowsCE.Forms
Microsoft.WindowsMobile.DirectX.*
System.ComponentModel.Design.*
46
The standard installation of the Subsystem for UNIX-based applications, Windows PowerShell,
and .NET Framework 2.0, 3.0, and 3.5 does not include 32-bit support. If you need 32-bit support,
install the WoW64 feature.
Note
The Dism.exe syntax is case sensitive so be sure to follow the examples explicitly.
Notes
To install the remote administration tool for BitLocker, type the following at a
command prompt:
Dism /online /enable-feature /featurename: BitLocker-RemoteAdminTool
47
Windows Server Backup: WindowsServerBackup
QWAVE: QWAVE
Note
If you need 32-bit support: Dism /online /enable-feature /featurename:NetFx2-
ServerCore-WOW64.
.NET Framework 3.0 and 3.5 (installed together): NetFx3-ServerCore
Note
If you need 32-bit support, run both of the following commands: Dism /online
/enable-feature /featurename:NetFx2-ServerCore-WOW64 and Dism /online
/enable-feature /featurename:NetFx3-ServerCore-WOW64.
Windows PowerShell: MicrosoftWindowsPowerShell
If you need 32-bit support for Windows PowerShell, run Dism /online/enable-feature
/featurename:MicrosoftWindowsPowerShell-WOW64
Note
Once you have installed IIS Management Service, to enable remote management of
it, use Regedit.exe to find the HKLM\Software\Microsoft\WebManagement\Server key
and set EnableRemoteManagement to 1. Then start the Management Service with
48
the command net start wmsvc.
Note
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,
Windows 7, Windows Server 2008, or Windows Server 2008 R2, 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, Windows 7, Windows Server 2008, or Windows Server 2008 R2, you can connect to a
server running Server Core installation in the same way that you would connect to any computer
running Windows.
Remotely using Server Manager. By using Server Manager from a computer running Windows
Server 2008 R2 you can connect to a server running a Server Core installation of Windows
Server 2008 R2 and manage it.
Enable Terminal Server clients on previous versions of Windows to connect to a server running a
Server Core installation
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 /?
Note
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
50
(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.
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.
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.
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)
3. At the command prompt, use the appropriate command-line tool for the task you want to
complete.
Notes
51
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).
3. In Computer, enter the name of the server running a Server Core installation, and click Connect.
5. When the command prompt appears, you can manage the computer using the Windows command-line
tools.
6. When you have finished remotely managing the computer, type logoff in the command prompt to end
your Terminal Server session.
Notes
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
Notes
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.
2. Start MMC on the computer running Windows Server 2008 or Windows Server 2008 R2, add
the TS RemoteApp Manager snap-in, and then connect the snap-in to a server running a
52
Server Core installation.
3. In the Results pane of the snap-in, click RemoteApp Programs, and then navigate to
\\<ServerName>\c$\windows\system32\cmd.exe (where SERVERNAME is the name of the
server running a Server Core installation).
4. In the Allow list, click Remote cmd.exe, and then click Create RDP package.
5. Connect to the server running a Server Core installation by using the Remote Desktop
Protocol package.
To manage a server running a Server Core installation by using the Windows Remote
Shell
1. To enable Windows Remote Shell on a server running a Server Core installation, type the following
command at a command prompt:
WinRM quickconfig
2. On another computer, at a command prompt, use WinRS.exe to run commands on a server running a
Server Core installation. For example, to perform a directory listing of the Windows folder, type:
Note
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.
Important
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
1. Start an MMC snap-in, such as Computer Management.
2. In the left pane, right-click the top of the tree and click Connect to another computer. (In the
Computer Management example, you would right-click Computer Management (Local).)
53
3. In Another computer, type the computer name of the server running a Server Core
installation and click OK.
4. You can now use the MMC snap-in to manage the server running a Server Core installation
as you would any other computer running a Windows Server operating system.
To manage a server that is running a Server Core installation and is not a domain
member using an MMC snap-in
1. If the server running a Server Core installation is not a member of a domain, establish alternate
credentials to use to connect to the Server Core installation by typing the following command at a
command prompt on your client computer:
3. If the firewall on the computer running a Server Core installation is not already configured to allow
MMC snap-ins to connect, follow the steps in "To configure Windows Firewall to allow MMC snap-
in(s) to connect." Then return to this procedure.
5. In the left pane, right-click the top of the tree and click Connect to another computer. (In the
Computer Management example, you would right-click Computer Management (Local).)
6. In Another computer, type the computer name of the server running a Server Core installation and
click OK.
7. You can now use the MMC snap-in to manage the server running a Server Core installation as you
would any other computer running a Windows Server operating system.
54
MMC snap-in Rule group
Notes
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.
IP Security Monitor. You must first enable remote management of this snap-in. To do this, at a
command prompt, type:
If the driver for the hardware is included in Windows Server 2008 or Windows Server 2008 R2,
Plug and Play will start and install the driver.
If the driver for the hardware is not included, proceed with the steps 2 and 3.
2. Copy the driver files to a temporary folder on the server running a Server Core installation.
3. At a command prompt, open the folder where the driver files are located, and then run the following
command:
pnputil -i -a <driverinf>
Where:
DRIVERINF is the file name of the .inf file for the driver.
4. If prompted, restart the computer.
To obtain a list of drivers that are installed on the server running a Server Core
installation
At a command prompt, type:
Note
You must include the space after the equal sign for the command to complete
successfully.
sc delete <service_name>
Where:
SERVICE_NAME is the name of the service that you obtain by running sc query type= driver.
Manually. Even in organizations that do not use Windows update or WSUS, you can apply updates
manually.
An administrator user account and password for a server running a Server Core installation.
57
If the server is a member of a domain, you can also configure Windows Update using Group
Policy. For more information, see http://go.microsoft.com/fwlink/?LinkId=192470. However, when
you use this method, only option 4 (Auto download and schedule the install) is relevant to
Server Core installations because of the lack of a graphical interface. For more control over which
updates are installed and when, you can use a script which provides a command-line equivalent
of most of the Windows Update graphical interface. For information about the script, see
http://go.microsoft.com/fwlink/?LinkId=192471.
To force Windows Update to immediately detect and install any available updates, run the
following command:
Wuauclt /detectnow
Depending on the updates that are installed, you may need to restart the computer, although the
system will not notify you of this. To determine if the installation process has completed, use Task
Manager to verify that the Wuauclt or Trusted Installer processes are not actively running. You
can also use the methods in the Viewing installed updates section to check the list of installed
updates.
To service the server with WSUS
If the Server Core server is a member of a domain, you can configure it to use a WSUS server
with Group Policy. For more information, see http://go.microsoft.com/fwlink/?LinkId=192472.
If the server is not a member of a domain, edit the Registry to configure it to use a WSUS server.
For more information, see http://go.microsoft.com/fwlink/?LinkId=192473.
Whenever you configure WSUS settings, be sure to select options that are valid for Server Core
installations. For example, since there is no graphical interface, there is no way to receive WSUS
notifications. For more control over which updates are installed and when, you can use a script
which provides a command-line equivalent of most of the Windows Update graphical interface.
For information about the script, see http://go.microsoft.com/fwlink/?LinkId=192471.
Depending on the updates that are installed, you may need to restart the computer, although the
system will not notify you of this.
Depending on the updates that are installed, you may need to restart the computer, although the
system will not notify you of this.
58
To view installed updates
At a command prompt, run either of these commands:
systeminfo
wmic qfe list
Event logs
Hardware
Remote administration
An administrator user account and password for the server running a 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).
59
Steps for administering a Server Core installation
The following procedures summarize common administrator tasks for a server running a Server
Core installation.
Many of these procedures and commands are summarized in a job aid that you can download
and print to take with you for use in the field. Separate versions for Windows Server 2008 and
Windows Server 2008 R2 are available at http://go.microsoft.com/fwlink/?LinkId=151984.
Task Steps
60
Confirm the new computer name At a command prompt, type:
set
61
2. At a command prompt, type:
netsh interface ipv4 add dnsserver
name=<name of secondary DNS server>
address=<IP address of the secondary DNS
server> index=2
3. Repeat as appropriate to add additional servers.
4. Verify by typing ipconfig /all and checking that all
the addresses are correct.
Note
If Slmgr.vbs fails to activate the computer, the resulting error message advises you to run
Slui.exe, along with the error code for more information. Slui.exe is not included in Server
Core installationsit is available in Windows Vista, Windows 7,and full installations of
Windows Server 2008 and Windows Server 2008 R2.
62
Task Steps
Note
Server Core installations cannot
access the Internet through a proxy
that requires a password to allow
connections.
Configure your server to bypass the proxy for At a command prompt, type:
internet addresses. netsh winttp set proxy <servername>:<port
number>bypass-list="<local>"
63
router. mrinfo
Task Steps
64
serverWerOptin /summary
To disable error reporting, type:
serverWerOptin /disable
Task Steps
65
Manage the performance counters and logging See http://go.microsoft.com/fwlink/?
with commands such as typeperf, logman, LinkId=84872.
relog, tracerprt.
Event logs
Task Steps
Task Steps
66
convert <volume letter> /FS:NTFS
Hardware
Task Steps
Add a driver for a new hardware device. 1. Copy the driver to a folder at %homedrive
%\<driver folder>.
2. At a command prompt, type:
pnputil -i -a %homedrive%\<driver
folder>\<driver>.inf
Remove a driver for a hardware device. 1. For a list of loaded drivers, at a command
prompt, type:
sc query type= driver
2. At the command prompt, type:
sc delete <service_name>
67
Logging bugs and feedback
Feature requests and general feedback about the Server Core installation of Windows Server 2008 and
Windows Server 2008 R2.
Feedback about this step-by-step guide. To provide feedback about this guide, follow the instructions
on the Microsoft Web site (http://go.microsoft.com/fwlink/?linkid=55105). Note that in the comment
area on the Web site, you need to provide the name of this step-by-step guide.
Additional references
Additional references
The following resources provide additional information about the Server Core installation of
Windows Server 2008:
If you need product support, see the Microsoft Connect Web site (http://go.microsoft.com/fwlink/?
LinkId=49779).
To access newsgroups for Server Core installation, follow the instructions that are provided on the
Microsoft Connect Web site (http://go.microsoft.com/fwlink/?LinkId=50067).
If you are a beta tester and part of the special Technology Adoption Program (TAP) beta program, you
can contact your appointed Microsoft development team member for assistance.
The following resources provide additional information about some of the commands that are
used to install and configure Server Core installations and server roles:
Active Directory
Windows Server 2003 Active Directory
(http://go.microsoft.com/fwlink/?LinkID=19802)
Backup
Backing Up and Recovering Data
(http://go.microsoft.com/fwlink/?LinkID=22347)
68
BitLocker Drive Encryption
BitLocker Drive Encryption Overview
(http://go.microsoft.com/fwlink/?LinkID=62724)
Failover Clustering
Clustering Services
(http://go.microsoft.com/fwlink/?LinkID=50520)
DHCP
Dynamic Host Configuration Protocol (http://go.microsoft.com/fwlink/?LinkID=56423)
Dfscmd
Dfscmd Overview
(http://go.microsoft.com/fwlink/?LinkId=49658)
DNS
Windows Server 2003 Domain Name System (DNS)
(http://go.microsoft.com/fwlink/?LinkID=56422)
Dnscmd
Dnscmd Overview
(http://go.microsoft.com/fwlink/?LinkId=49656)
Dnscmd Syntax
(http://go.microsoft.com/fwlink/?LinkId=49659)
Dnscmd Examples
(http://go.microsoft.com/fwlink/?LinkId=49660)
69
File Server
File and Storage Services
(http://go.microsoft.com/fwlink/?LinkID=26716)
Multipath I/O
Microsoft Storage Technologies: Multipath I/O
(http://go.microsoft.com/fwlink/?LinkId=50521)
Netsh
Netsh Overview
(http://go.microsoft.com/fwlink/?LinkId=49654)
Removable Storage
Removable Storage
(http://go.microsoft.com/fwlink/?LinkID=62728)
Note
See the unattend file documentation for more information about unattend file settings.
Windows System Image Manager, which is provided as part of the Windows Automated
Installation Kit, provides an excellent environment for authoring unattend files.
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:ms="urn:schemas-microsoft-
com:asm.v3" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
70
<!-- Do not have empty elements. Delete such elements instead. Values should be assumed to
be case sensitive. Boolean types have valid values as true,false,0,1 and are case
sensitive. Other examples of case sensitive values are Drive Letters (only upper case C-Z
supported), Format, Type. -->
<settings pass="windowsPE">
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>MyFullName</FullName>
<Organization>MyOrganizationName</Organization>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>Sensitive*Data*Deleted</Key>
</ProductKey>
</UserData>
<ImageInstall>
<OSImage>
<WillShowUI>Never</WillShowUI>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallFrom>
<MetaData>
<Key>/IMAGE/Name</Key>
<!Specify that this is a Server Core installation. To install server, the value is
Windows Longhorn Server%SKU%core. This example is for the Standard edition -->
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
</component>
</settings>
<settings pass="specialize">
71
<component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS" processorArchitecture="x86">
<ComputerName>MyCompName</ComputerName>
</component>
<component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
processorArchitecture="x86">
<!-- Enable support for pre-Windows Vista or Windows Server 2008 Terminal Services clients
-->
<UserAuthentication>0</UserAuthentication>
</component>
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
processorArchitecture="x86">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component name="Microsoft-Windows-Web-Services-for-Management-Core"
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
processorArchitecture="x86">
<ConfigureWindowsRemoteManagement>true</ConfigureWindowsRemoteManagement>
</component>
<Identification>
<Credentials>
<Domain>UserDomain</Domain>
<Username>UserName</Username>
<Password>UserPassword</Password>
</Credentials>
<JoinDomain>DomainToBeJoined</JoinDomain>
<!-- You can either have JoinDomain or JoinWorkgroup but not both.
<JoinWorkgroup>work</JoinWorkgroup>
-->
</Identification>
</component>
72
</settings>
<settings pass="oobeSystem">
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>16</ColorDepth>
</Display>
<UserAccounts>
<DomainAccounts>
<DomainAccountList>
<Domain>DOMAIN</Domain>
<DomainAccount>
<Name>TestAccount1</Name>
<Group>Administrators</Group>
</DomainAccount>
</DomainAccountList>
</DomainAccounts>
</UserAccounts>
</component>
</settings>
</unattend>
Note
73