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

No comments yet

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 )

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

You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS

Follow

Get every new post delivered to your Inbox.