OCSETUP is used to install or uninstall features and roles in Windows Server 2008 Server Core
to Install from a command line:
start /v ocsetup Feature_package_name
to Uninstall from a command line:
start /v ocsetup Feature_package_name /uninstall
The following are features and their associated package names that can be installed:
Backup: WindowsServerBackup
BitLocker Drive Encryption: BitLocker
BitLocker Drive Encryption Remote Administration Tool: BitLocker-RemoteAdminTool
Failover Clustering: FailoverCluster-Core
Multipath IO: MultipathIo
Network Load Balancing: NetworkLoadBalancingHeadlessServer
Quality Windows Audio Visual Experience: QWAVE
Removable Storage: Microsoft-Windows-RemovableStorage-ManagementCore
SNMP: SNMP-SC
SUA: SUACore
Telnet client: TelnetClient
WINS: WINS-SC
The following are roles and associated package names that can be installed:
Active Directory Domain Services (AD DS): DirectoryServices-Domain-Controller-ServerFoundation
Active Directory Lightweight Directory Services (AD LDS): DirectoryServices-ADAMServerCore
DHCP Server: DHCPServerCore
DNS Server: DNS-Server-Core-Role
File Services / DFS Namespaces: DFSN-Server
File Services / DFS Replication: DFSR-Infrastructure-ServerEdition
File Services / Services for Network File System: ServerForNFS-Base
File Services / File Replication Service: FRS-Infrastructure
Print Services / Print Server: Printing-ServerCore-Role
Print Services / LPD Service: Printing-LPDPrintService
Web Server (IIS): IIS-WebServerRole
Streaming Media Services: MediaServer
Hyper-V (virtualization): Microsoft-Hyper-V