Microsoft small business knowledge base

Article ID: 161983 - Last Review: January 19, 2007 - Revision: 4.5

This article was previously published under Q161983
Moderate: Requires basic macro, coding, and interoperability skills.


Regsvr32.exe is an application that is used to register dynamic-link libraries (DLLs) and ActiveX controls (formerly called OLE Custom Controls) in the Microsoft Windows 95 and Microsoft Windows NT registries. For example, to manually register the Sample.ocx ActiveX control, you type the following at the MS-DOS prompt:
c:\Regsvr32.exe Sample.ocx
NOTE: This assumes that Regsvr32.exe and Sample.ocx are both in the root directory of drive C (c:\).

Regsvr32.exe has the following command line switches:
/u - Unregister server
/s - Silent; displays no message boxes
/c - Console output
Regsvr32.exe is contained within a self extracting exe file called Regsv32a.exe.

The following file is available for download from the Microsoft Download Center:
Regsv32a.exe (
The Regsv32a.exe file contains the following files:
   Library. It contains the following files:

   Regsvr32.exe    The Regsvr32.exe application.
   Regsv32a.txt    A text file containing information and instructions.
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591  ( ) How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

  • Microsoft Access 95 Standard Edition
  • Microsoft Access 97 Standard Edition
kbdownload kbinfo kbprogramming KB161983
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
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