Skip to content

Adding and Removing server roles and optional features on Server Core


To install a server role on Server Core, you need to use the following command line:

Start /w ocsetup “RolePackage” where RolePackage is one of the following: 

Use OClist.exe to view installable roles 

DHCP = DHCPServerCore
DNS = DNS-Server-Core-Role
File = File-Server-Core-Role
File Replication service = FRS-Infrastructure
Distributed File System service = DFSN-Server
Distributed File System Replication = DFSR-Infrastructure-ServerEdition
Network File System = ServerForNFS-Base
Single Instance Store = SIS
 

You may be wondering why Active Directory isn’t in the list above and that is because it is a bit different from the other roles. To install Active Directory, you need to use the following command line:

Dcpromo /unattend:Unattendfile

In Server Core 2008, the dcpromo tool that is installed by default performs the installation and removal of the rest of the Active Directory binaries. The unattend file is the same file and format that you can use when running dcpromo unattend on Server.

To install an optional feature on Server Core, you need to use the following command line:

Start /w ocsetup OptionalFeaturePackage

Where OptionalFeaturePackage is one of the following:

Failover Cluster = FailoverCluster-Core
Network Load Balancing = NetworkLoadBalancingHeadlessServer
Subsystem for UNIX-bases applications = SUA
Multipath IO = Microsoft-Windows-MultipathIO
Removable Storage Management = Microsoft-Windows-RemovableStorageManagementCore
Bitlocker Drive Encryption = BitLocker
Backup = WindowsServerBackup
Simple Network Management Protocol (SNMP) = SNMP-SC
 To remove a server role or optional feature, you use the same command line but add /uninstall.

Ocsetup and listed roles seem like they are currently case sensitive, so you need to use the names exactly as above.

OcList   Installing DNS Server Role

7 Comments Post a comment
  1. Julia Fedricks #

    This is useful if you are a network administrator. Come to Windows 8 and you will need this system image backup and restore feature. BTW, this blog looks like automated.

    2013/01/21
  2. If you want to obtain much from this piece of writing then you have to apply such methods to your won webpage.

    2013/07/14
  3. I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble.
    You’re wonderful! Thanks!

    2013/07/17
  4. Pretty! This was an incredibly wonderful article.
    Thanks ffor providing this information.

    2014/04/20
  5. For latest informaation you have to go tto see web and onn
    web I found this site as a best web site for most up-to-date updates.

    2014/04/20
  6. I really like it whenever people get together and share
    thoughts. Great website, keep it up!

    2014/06/24
  7. Great site you have here but I was wanting to know if you knew of any community forums that cover the same topics discussed in this article?
    I’d really love to be a part of group where I can get comments from other experienced individuals
    that share the same interest. If you have any suggestions, please let me know.
    Kudos!

    2015/04/10

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: