If you still remember my previous post on deploying Windows Server Core 2008, I referred to OCSetup.exe (OptionalComponentsSetup) for installing Server Roles & Features on Server Core and OClist.exe to identify all installable and/or installed roles and features. However, in several cases some of those roles are not available by default (such as Hyper-V, StreamingMediaServer, ...). So let me point out how to make them available...
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.
To accomplish this, the Server Core installation option installs only the subset of the binary files that are required by the supported server roles.
A server running Windows Server Core 2008 supports the following 9 server roles:
- Active Directory Domain Services (AD DS) using dcpromo.exe
- Active Directory Lightweight Directory Services (AD LDS)
- DHCP Server
- DNS Server
- File Services
- Print Services
- Streaming Media Services
- Web Server (IIS)
- Hyper-V (Windows Server Virtualisation) - supported since RC1 - running as the parent virtual machine
All Server Core server roles can be installed via OCsetup.exe, with the exception of the Active Directory Domain Controller role which is done through dcpromo using an unattend file and the Web Server which is done through the PackageManager (PkgMgr.exe).
Installing a specific server role follows the syntax below:
start /w ocsetup <serverrole-name>
- Active Directory Domain Services (AD DS): dcpromo /unattend:<unattendfile.xml>
- Active Directory Lightweight Directory Services (AD LDS): start /w ocsetup DirectoryServices-ADAM-ServerCore
- DHCP Server: start /w ocsetup DHCPServerCore
- DNS Server: start /w ocsetup DNS-Server-Core-Role
- File Services: installed by default
- Print Services: start /w ocsetup Printing-ServerCore-Role
- Streaming Media Server: start /w ocsetup MediaServer (After copying the appropriate Microsoft Update Standalone package (.msu files) to your Server Core installation, and running the .msu file(s)).
- Web Server: start /w pkgmgr /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel
You might be missing some of the server roles when looking through the Optional Component list (via OClist.exe) such as Streaming Media Server and Hyper-V.
To add updates/roles/features to the list, use the following command: wusa <update>.msu /quiet
A typical example is the Streaming Media Server role, which only becomes available after copying the appropriate Microsoft Update Standalone package (.msu files) to your Server Core installation and running the .msu file(s).
Installing a specific feature follows the syntax below:
start /w ocsetup <feature-name>
start /w ocsetup BitLocker
start /w ocsetup BitLocker-RemoteAdminTool
start /w ocsetup FailoverCluster-Core
start /w ocsetup WINS-SC
For more information: Server Core Installation Options, Windows Server 2008: Using Server Core as a Print Server, Deploying Windows Server Core, IIS7 on Server Core