Share via


Event ID 4 — Component Installation and Removal

Applies To: Windows Server 2008

You can use Optional Component Setup (OCSetup.exe) to install optional components in Windows Vista and Server Core installations of Windows Server 2008. OCSetup.exe passes Component-Based Servicing (CBS) components to Package Manager for installation, and OCSetup.exe passes system Windows Installer (MSI) components to Windows Installer for installation. You can also call Package Manager directly to install components independently from OCSetup.exe. For more information about OCSetup, see https://go.microsoft.com/fwlink/?LinkId=91916.

Event Details

Product: Windows Operating System
ID: 4
Source: Microsoft-Windows-OcSetup
Version: 6.0
Symbolic Name: OCSETUP_EVENT_GENERICFAILURE
Message: The Windows component could not be configured because of an error: %1 "%2" (Command line: "%3")

Resolve

Try your operation again and then check the logs

To resolve this issue, first try your operation again. If your operation still fails, then restart your computer and try the operation again.

If you continue to receive this error, then you have encountered a more complex issue. In this case, you may need to call Customer Service and Support (CSS) in order to resolve the problem. If you want to try to determine the cause yourself, you can diagnose the Windows Update log (%windir%\WindowsUpdate.log), the Component-Based Servicing log (%windir%\logs\cbs\cbs.log), and the driver logs. For information about diagnosing these logs, see https://go.microsoft.com/fwlink/?LinkId=84909.

If you do not want to diagnose the logs, you should call CSS and provide the following logs to them. For information about how to contact CSS, see Support Options from Microsoft Services (https://go.microsoft.com/fwlink/?LinkId=89446).

  • Windows Update log (%windir%\WindowsUpdate.log)
  • Component-Based Servicing log (%windir%\logs\cbs\cbs.log)
  • Windows Side-by-Side Pending log (%windir%\winsxs\pending.xml)
  • Windows Side-by-Side Pending Bad log (%windir%\winsxs\pending.xml.bad)
  • Pending Operations Queue Exec log (%windir%\winsxs\poqexec.log)
  • DPX Setup Act log (%windir%\logs\DPX\setupact.log)

Verify

To verify that a component is installed:

  • If you are running Windows Vista, do one of the following:
    • Open Event Viewer, expand Windows logs, click Setup, and verify that OCSetup raised the event: Event 1: The Windows component "<ComponentName>" was successfully installed. (Command line: "<Command>").
    • If you enabled a Windows feature (either using the user interface or using Ocsetup at the command line), in Control Panel, click Programs, and under Programs and Features, click Turn Windows features on or off. Verify that the optional component check box is selected.
  • If you are running Windows Server 2008, verify that the feature is installed by doing one of the following:
    • Open the Server Manager console and verify that the feature is listed in the Features Summary area of the Server Manager home page.
    • Open a command prompt with elevated privileges, type servermanagercmd.exe –query, and then press ENTER. Installed features are highlighted and have their check boxes selected in the query results.

To verify that a component was removed:

  • If you are running Windows Vista, do one of the following:
    • Open Event Viewer, expand Windows logs, click Setup, and verify that OCSetup raised the event: Event 2:The Windows component "<ComponentName>" was successfully uninstalled. (Command line: "<Command>").
    • If you disabled a Windows feature (either using the user interface or using Ocsetup at the command line), in Control Panel, click Programs, and under Programs and Features , click Turn Windows features on or off. Verify that the optional component check box is not selected.
  • If you are running Windows Server 2008, do one of the following:
    • Open the Server Manager console and verify that the feature is not listed in the Features Summary area of the Server Manager home page.
    • Open a command prompt with elevated privileges, type servermanagercmd.exe –query, and then press ENTER. The feature should not be highlighted or have its check box selected in the query results.

Component Installation and Removal

Setup Infrastructure