Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Regsvr32 命令大師級應用:修復 IE、移除 ZIP、防範腳本病毒

編輯:關於 Windows

Regsvr32.exe 是註冊/解除註冊 ActiveX 元件(.dll、.ocx)的核心工具。善用其參數,能解決 IE 故障、精簡系統、阻擋網頁惡意腳本。

參數速查

參數功能
/u解除註冊
/s靜默模式(不顯示成功對話框)
/c主控台輸出
/i呼叫 DllInstall,搭配 /u 呼叫解除安裝函數

三大經典實戰

1. 修復 IE 無法開新視窗/超連結無反應

regsvr32 actxprxy.dll
regsvr32 shdocvw.dll

依序執行,重開機後 IE 恢復正常。

2. 移除 Windows 內建 ZIP 功能(釋放資源、避免衝突)

regsvr32 /u zipfldr.dll   ← 移除
regsvr32 zipfldr.dll      ← 恢復

建議改用 7-Zip、Bandizip 等第三方解壓縮工具。

3. 禁用 FSO 物件防範腳本病毒(FileSystemObject)

regsvr32 /u scrrun.dll   ← 禁用 FSO
regsvr32 scrrun.dll      ← 啟用

許多網頁惡意腳本仰賴 FSO 讀寫檔案、複製傳播。禁用後網頁功能可能受限(如無法上傳檔案),需視情境啟用。

現代補充

  • Windows 10/11 已大幅減少 ActiveX 依賴,Edge 不支援 ActiveX,IE 模式僅相容舊系統
  • PowerShell 替代:Add-Type -AssemblyName "Microsoft.VisualBasic" | Out-Null; [Microsoft.VisualBasic.Interaction]::Shell("regsvr32 ...") 或直接呼叫 regsvr32
  • 批次處理建議加 /s 參數靜默執行,避免彈窗阻塞自動化腳本

Regsvr32 雖老,仍是系統維護工具箱中的利器。

Copyright © Windows教程網 All Rights Reserved