How to register an ActiveX control manually (.ocx)

This article describes how to register an .ocx file manually.

You can use the Microsoft Register Server (Regsvr32.exe) to register an .ocx file manually. The syntax for using Regsvr32.exe is as follows:

Regsvr32 [/u] [/s] <OCX File Name>

Note /u means Unregister the .ocx file.
means Silent Mode (display no messages).

The following example registers the Microsoft MSCOMCTL ActiveX Control without displaying any messages: 

Regsvr32 /s c:\windows\system32\mscomctl.ocx

More information
Note: This needs to be run with administrator permissions

1.     Click Start, type cmd.

2.     Right-click the cmd icon, and then click Run as Administrator.

3.     At the command prompt, type the following command, and then press ENTER:

Regsvr32 /s c:\windows\system32\mscomctl.ocx
active x ocx control
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2746232 - Last Review: 10/01/2015 02:48:00 - Revision: 2.0

Microsoft Excel 2010, Microsoft Office Excel 2007, Microsoft Office Word 2007, Microsoft Word 2010, Microsoft Access 2010, Microsoft Office Access 2007, Microsoft Access 2013, Access 2016

  • KB2746232