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

Windows XP 工作列顯示重複標籤問題修復腳本

編輯:Windows XP 系統介紹

Windows XP 工作列異常:無論開啟何程式,工作列皆顯示相同標籤且重疊顯示兩個。此為工作列工具列設定登錄損毀導致,透過修復登錄並重啟 Explorer 即可解決。

修復腳本 (FixTaskbar.vbs)

建立文字檔,貼上下列 VBScript 程式碼,存為 FixTaskbar.vbs 雙擊執行:

Set WSHShell = WScript.CreateObject("WScript.Shell")
Message = "本腳本用於修復Windows XP中當最小化程式時,無法在工作列顯示圖示的問題。" & vbCR & vbCR
Message = Message & "為了正常工作,本腳本將關閉和重啟 Windows Explorer 外殼,這個操作不會損壞你的系統。" & vbCR & vbCR
Message = Message & "請關閉所有殺毒軟體的即時監控!並保存所有打開的檔案。" & vbCR & vbCR
Message = Message & "是否繼續?"
X = MsgBox(Message, vbYesNo+vbExclamation, "注意")
If X = 6 Then
  On Error Resume Next
  WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"
  WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\MRU"
  WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop"
  WshShell.RegDelete "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}\BarSize"
  P1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  WshShell.RegWrite p1 & "\NoBandCustomize", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoMovingBands", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoCloseDragDropBands", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoSetTaskbar", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoToolbarsOnTaskbar", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoSaveSettings", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoToolbarsOnTaskbar", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoSetTaskbar", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\NoActiveDesktop", 0, "REG_DWORD"
  WshShell.RegWrite p1 & "\ClassicShell", 0, "REG_DWORD"
  p1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
  WshShell.RegWrite p1 & "\NoCloseDragDropBands", 0, "REG_DWORD"
  WshShell.RegDelete p1 & "\NoMovingBands"
  p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell"
  WshShell.RegWrite p1, "explorer.exe", "REG_SZ"
  p1 = "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}"
  WshShell.RegDelete p1 & "\BarSize"
  WshShell.RegWrite p1, "媒體區", "REG_SZ"
  On Error Goto 0
  For Each Process in GetObject("winmgmts:").ExecQuery ("select * from Win32_Process where name='explorer.exe'")
    Process.Terminate(0)
  Next
  MsgBox "完成!" & vbcr & vbcr & "© Kelly Theriot and Doug Knox", 4096, "完成"
Else
  MsgBox "沒有對你的系統進行任何改變。" & vbcr & vbcr & "© Kelly Theriot and Doug Knox", 4096, "用戶取消了"
End If

腳本運作原理

  1. 刪除損毀的工作列佈局登錄:StuckRects2、Streams\MRU、Streams\Desktop
  2. 重置工作列相關群組原則登錄值為預設 (0 = 未限制)
  3. 確保 Shell 為 explorer.exe
  4. 透過 WMI 強制終止所有 explorer.exe 進程,系統自動重啟 Explorer 載入修正後設定

手動修復替代方案

  • 手動開啟 regedit 刪除上述機碼/修改數值
  • 工作管理員 → 程序 → 結束 explorer.exe → 檔案 → 新增工作 → explorer.exe
  • 或登出/重新登入

適用情境

  • 工作列圖示消失/重複/亂序
  • 快速啟動列消失/無法自訂
  • 語言列/工具列異常
  • 系統優化軟體/病毒修改工作列設定後遺症

執行修復腳本(或手動對應操作),即可徹底修復 Windows XP 工作列顯示異常問題,恢復正常操作體驗。

Copyright © Windows教程網 All Rights Reserved