ใน Microsoft Windows Operating Systems regsvr32 เป็น Command-line Utility ใช้ Register และ Un-register OLE Controls เช่น DLLs และ ActiveX Controls ใน Windows Registry ตัวอย่าง – DLL ที่ใช้กับ regsvr32 ต้อง Export Functions DllRegisterServer และ DllUnregisterServer เครื่องมือนี้ใช้ Troubleshooting ปัญหาใน Windows, Microsoft Internet Explorer หรือโปรแกรมอื่นๆ

Regsvr32 ใน Windows 10
Regsvr32.exe รวมอยู่ใน Microsoft Windows ติดตั้งในโฟลเดอร์ System32 (Windows NT/XP/Vista/7/8.1/10)
Regsvr32 Command และ Usage
1. RegSvr32.exe Command-line Options:
Regsvr32 [/ u] [/ n] [/ i [: cmdline]] dllname
2. Parameters:
- /u : Unregister ไฟล์
- /s : รันแบบ Silent ไม่แสดง Message Boxes
- /n : ไม่เรียก DllRegisterServer ใช้กับ /i
- /i :cmdline : เรียก DllInstall ส่ง [cmdline] ไปด้วย ใช้กับ /u เรียก Dll Uninstall
- dllname: ระบุชื่อไฟล์ DLL ที่จะ Register
- /n – ไม่เรียก DllRegisterServer หรือ DllUnregisterServer ต้องใช้กับ /i
ตัวอย่าง Register/Unregister DLL shm.dll ใน CMD:

- regsvr32 shm.dll สำหรับ Register ไฟล์
- regsvr32 /u shm.dll สำหรับ Uninstall ไฟล์
Regsvr32.exe Error Messages
รายการ Error Messages และสาเหตุที่เป็นไปได้:
- The command-flag ""%1"" is not valid. Please review the command usage and try again.
- This command is only valid if a Microsoft Visual Studio OLE Custom Control project is opened.
- To register a module, you must provide a binary name.
- The command OleInitialize failed to run. Your computer might be low on memory. Close any open programs and then try again.
- The module ""%1"" failed to load.\n\n Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.\n\n%2.
- The module ""%1"" was loaded but the entry-point %2 was not found.\n\nMake sure that ""%1"" is a valid DLL or OCX file and then try again.
- The module ""%1"" was loaded but the call to %2 failed with error code %3.\n\nFor more information about this problem, search online using the error code as a search term.
- The module ""%1"" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
บน Windows 64-bit จะมี Regsv32.exe 2 เวอร์ชัน: 64-bit อยู่ %systemroot%\System32\regsvr32.exe และ 32-bit อยู่ %systemroot%\SysWoW64\regsvr32.exe ตาม KB249873