Installing and Uninstalling Roles and Features Using Ocsetup ( From Windows Core Install)

You can use Ocsetup.exe to install or remove roles, role services, and features on Server Core. The Ocsetup.exe syntax is case sensitive so you must type package names exactly as shown below (or exactly the same as in the output of the Oclist command).

To install and uninstall a role, role service, or feature, you use this command syntax:


start /w ocsetup package_name


start /w ocsetup package_name /uninstall

The Start command is required to open the Ocsetup.exe process in its own window. The /w switch causes Start to wait for the spawned process to finish running before returning to the command prompt.


Roles / Role Services and their Package Names
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

Features and Their Package Names
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
Telnet client: TelnetClient

dpejic has written 84 articles

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>