The Ocsetup.exe tool is used as a wrapper for Package Manager (Pkgmgr.exe) and for Windows Installer (Msiexec.exe). In Windows Server 2008, Server Manager uses the Ocsetup.exe tool.
In Windows Vista, Windows Defender Software Explorer and Windows Update use the Ocsetup.exe tool. The Ocsetup.exe tool provides functionality that resembles the functionality that the Sysocmgr.exe tool provides in Microsoft Windows XP and in Microsoft Windows Server 2003.
Note To display the list of command-line switches that the Ocsetup.exe tool supports, type ocsetup at the command prompt, and then press ENTER. To determine the name of the Windows optional component, click Start, type optionalfeatures in the Start Search box, and then click optionalfeatures in the Programs list. For example, if you want to remove the DHCP Server role, type start /w ocsetup DHCPServerCore /uninstall, and then press ENTER. The optional component name is case sensitive. In step 2, Optional component name specifies the name of the Windows optional component. Start /w ocsetup Optional component name /uninstallNotes Use Ocsetup.exe to remove Windows optional components
Type exit, and then press ENTER to close the Command Prompt window. To determine the correct optional component name for Windows Vista to use with the ocsetup command-line, visit the following Web page, and then review the "Command-Line Name" column in the Microsoft-Windows-Foundation-Package Features table:
For example, if you want to install the DHCP Server role, type start /w ocsetup DHCPServerCore, and then press ENTER.
Start /w ocsetup Optional component nameNotes Use Ocsetup.exe to install Windows optional componentsĬlick Start, right-click Command Prompt, and then click Run as administrator.Īt the command prompt, type the following command, and then press ENTER: You must have administrative credentials to run the Ocsetup.exe tool. You can use the Ocsetup.exe tool at the command prompt to install or to remove Windows Vista optional components. Windows optional components are parts of the Windows operating system that can be individually added, removed, enabled, or disabled.
This article describes how to use the Windows optional component setup tool (Ocsetup.exe) to install or to remove Windows optional components in Windows Vista. Windows Vista Business Windows Vista Enterprise Windows Vista Home Premium Windows Vista Home Basic Windows Vista Ultimate Windows Server 2008 Datacenter without Hyper-V Windows Server 2008 Enterprise without Hyper-V Windows Server 2008 for Itanium-Based Systems Windows Server 2008 Standard without Hyper-V Windows Server 2008 Datacenter Windows Server 2008 Enterprise Windows Server 2008 Standard Windows Server 2008 Web Edition More.