Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Vista 磁碟分區 3 主分區 + 1 邏輯分區現象分析與 Windows Update 錯誤修復腳本

編輯:Windows Vista 教學

分區現象說明

Vista 安裝程式在新硬碟上自動建立 3 個主分區 + 1 個邏輯分區(含 100MB 系統保留分區、系統分區、恢復分區等),屬正常設計。主分區數量不影響效能,關鍵在於系統分區(C:)空間足夠(建議 ≥50GB)。第三方工具可合併調整,但需謹慎操作避免啟動損壞。

Windows Update 常見錯誤修復批次腳本 (register.bat)

針對 Vista Windows Update 失敗(錯誤碼 0x80070002 等),提供完整 DLL 重註冊與 Catroot2 重建腳本:

@echo off
net stop wuauserv
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
net start wuauserv

regsvr32 /s urlmon.dll
regsvr32 /s Shdocvw.dll
regsvr32 /s Msjava.dll
regsvr32 /s Actxprxy.dll
regsvr32 /s Oleaut32.dll
regsvr32 /s Mshtml.dll
regsvr32 /s Browseui.dll
regsvr32 /s Shell32.dll
regsvr32 /s jscript.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml2.dll
regsvr32 /s msxml3.dll
regsvr32 /s wuapi.dll
regsvr32 /s wuaueng.dll
regsvr32 /s wuaueng1.dll
regsvr32 /s wuauserv.dll
regsvr32 /s wucltui.dll
regsvr32 /s wups.dll
regsvr32 /s wuweb.dll
regsvr32 /s iuengine.dll
regsvr32 /s softpub.dll
regsvr32 /s initpki.dll
regsvr32 /s mssip32.dll

attrib -h -s -r %windir%\system32\catroot2
attrib -h -s -r %windir%\system32\catroot2\*.*
ren %windir%\system32\catroot2 catroot2.old
net stop cryptsvc
net start cryptsvc

echo 修復完成,請重啟電腦後再試 Windows Update。
pause

使用方法

  1. 將上述內容存為 register.bat(編碼 ANSI)。
  2. 右鍵以「系統管理員身分執行」。
  3. 執行完成後重啟電腦,再次嘗試 Windows Update。

進階修復步驟(若批次檔無效)

  1. 以管理員身分 CMD 執行 proxycfg -d 重設 WinHTTP Proxy。
  2. 停用/移除第三方防火牆/安全軟體(單純關閉可能不足,需卸載)。
  3. 檢查系統時間/時區正確性。
  4. 執行 sfc /scannow 修復系統檔案。
Copyright © Windows教程網 All Rights Reserved