殺毒後硬碟分區雙擊無法開啟、提示「Windows 找不到 xxx.exe」,右鍵「開啟」卻正常?經典 Autorun.inf 病毒殘留導致檔案關聯被劫持,附完整修復方案。
Autorun.inf + 惡意 .exeAutorun.inf 內容:[AutoRun] open=malware.exeHKEY_CLASSES_ROOT\Drive\shell\open\command 被竄改指向病毒路徑Autorun.inffor %d in (C D E F G H) do @if exist %d:\Autorun.inf attrib -s -h -r %d:\Autorun.inf & del %d:\Autorun.infopen → 應用程式:explorer.exe %1open → 設為預設HKEY_CLASSES_ROOT\Drive\shell (整個機碼)HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\shell 分支D: dir /a attrib -s -h -r autorun.inf del autorun.inf regedit :: 搜尋 DESKTOP.exe 或惡意程式名稱 :: 找到第一個即為該分區自動執行鍵值 :: 刪除整個 shell 子機碼 :: 重複處理其他分區
regsvr32 /u shmedia.dll 停用媒體預覽 (可能影響縮圖) regsvr32 shmedia.dll 恢復
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun = 0xFF (255)雙擊無法開啟分區 = Autorun.inf 殘留 + 關聯被劫持。依序執行方案一→三→四,99% 情況可徹底修復。