regsvr32

在登錄中將 .dll 檔案註冊為命令元件。

語法

regsvr32 [/u] [/s] [/n] [/i[:cmdline]] <Dllname>

參數

參數 描述
/u 取消註冊伺服器。
/s 防止顯示訊息。
/n 防止呼叫 DllRegisterServer。 此參數會要求您同時使用 /i 參數。
/i:<cmdline> 將選擇性命令列字串 (cmdline) 傳遞至 DllInstall。 如果您使用此參數搭配 /u 參數,它會呼叫 DllUninstall
<Dllname> 要註冊的 .dll 檔名。
/? 在命令提示字元顯示說明。

範例

若要註冊 Active Directory 結構描述的 .dll,請輸入:

regsvr32 schmmgmt.dll