Windows Server 2008 : Adding Roles to Server Core - Using ocsetup to Add Roles to Windows Server 2008 (part 1)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Understanding the Supported Roles

Server Core has a limited number of services that it can support. Because of this, it has a limited number of roles that you can add. The following table shows the supported roles in Windows Server 2008 and Windows Server 2008 R2.


Some adventurous administrators have configured Server Core installations to support more roles than the ones listed; however, these installations are not fully tested by Microsoft and are not supported.

RoleServer 2008Server 2008 R2
Active Directory Doman Services (AD DS)XX
Active Directory Lightweight Directory Services (AD LDS)XX
Active Directory Certificate Services (AD CS) X
DNS ServerXX
File ServicesXX (including File Server Resource Manager)
Print ServicesX 
Print and Document Services X
Web Server (IIS)XX (including a subset of ASP.NET)
Streaming Media ServicesXX

The following table shows some differences in features that are available in Windows Server 2008 and Windows Server 2008 R2. Most of the changes show additional features supported in the R2 version. The only feature no longer available in Windows Server 2008 R2 is the Removable Storage feature.

FeatureServer 2008Server 2008 R2
.NET Framework X
PowerShell X
ASP.NET in Web Server role X
File Server Resource Manager component of File Services X
Print and Document Services X
Removable Storage featureX 

2. Using ocsetup to Add Roles to Windows Server 2008

On a regular installation of Windows Server 2008, you use the Server Manager to install additional roles; however, the Server Manager is not available in Server Core. Instead, use ocsetup to add additional roles. The basic syntax is

start [/w] ocsetup role-name


The role-name must be entered using the exact case. This is one of the few times when upper- and lowercase matters with the command prompt. Figure 1 shows the error message you see if the case is not entered exactly.

Figure 1. ocsetup error when incorrect case used


The /w switch prevents the command prompt from returning until the installation of the role completes. This is useful to provide feedback indicating that the role was successfully installed when the command prompt returns.

Some roles require additional steps to configure. The following sections show how to add and configure various roles.


The following section shows the basics to add roles with ocsetup. For a full listing of command options you can use with the ocsetup command, check out this TechNet page:

  •  Windows Server 2008 : Configuring Server Core for Remote Administration - Enabling Access with Remote Microsoft Management Consoles
  •  Windows Server 2008 : Configuring Server Core for Remote Administration - Using the Server Core Registry Editor
  •  Managing Windows Server 2012 (part 13) - Using Remote Desktop - Supporting Remote Desktop Connection clients
  •  Managing Windows Server 2012 (part 12) - Using Remote Desktop - Remote Desktop essentials, Configuring Remote Desktop
  •  Managing Windows Server 2012 (part 11) - Optimizing toolbars
  •  Managing Windows Server 2012 (part 10) - Customizing the desktop and the taskbar - Using Auto Hide and locking, Controlling programs in the notification area
  •  Managing Windows Server 2012 (part 9) - Customizing the desktop and the taskbar - Configuring desktop items, Configuring the taskbar
  •  Managing Windows Server 2012 (part 8) - Using the System console
  •  Managing Windows Server 2012 (part 7) - Using Control Panel
  •  Managing Windows Server 2012 (part 6) - Working with Computer Management
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us