Microsoft small business knowledge base

Article ID: 2746232 - Last Review: August 16, 2012 - Revision: 1.0


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
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.

Applies to
  • Microsoft Excel 2010
  • Microsoft Office Excel 2007
  • Microsoft Office Word 2007
  • Microsoft Word 2010
  • Microsoft Access 2010
  • Microsoft Office Access 2007
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support