Freigeben über


Tip: Installing and Uninstalling Roles and Features Using Ocsetup

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.

Tips RSS Feed

Subscribe to the TechNet Magazine Tips RSS feed.

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
SNMP: SNMP-SC
SUA: SUACore
Telnet client: TelnetClient
WINS: WINS-SC

From the Microsoft Press book Windows Server 2008 Server Core Administrator’s Pocket Consultant by Mitch Tulloch.

Looking for More Tips?

For more Windows Server tips, visit the TechNet Magazine Windows Server 2008 Tips page.

For more Tips on other products, visit the TechNet Magazine Tips index.