Lỗi virus thêm vào regedit error deleting key năm 2024

1. Backup anything that you do not want to lose in this user account’s C:\Users\(user-name) profile folder, if the profile folder still exists, to another location, then delete the (user-name) profile folder.

2. Open the Start menu.

3. In the Start Menu search box, type regedit and press Enter.

4. If prompted by UAC, then click on Continue (Vista) or Yes (Windows 7).

5. In regedit, go to: (See screenshot below step 7)

Code: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList 6. In the left pane, click on one of the S-1-5….. folders (SID key) with the long number. (See screenshot below step 7) NOTE: It should have .bak at the end of it.

  1. In the right pane, look at the ProfileImagePath to see if this is the same user account that you deleted in step 1 above.
  1. Repeat step 6 until you find the one that you deleted in step 1 above.

To Backup the Registry SID Key

WARNING: You should backup this SID key to be safe in case you delete the wrong one in step 8 below.

  1. Right click on the SID key from step 6, and click on Export.
  1. Type in a name and save the REG file to a safe location. NOTE: This is your backup. To Restore the Backup, right click on the REG backup file and click on Merge.
  1. Continue on to step 8.

Lỗi virus thêm vào regedit error deleting key năm 2024

8. Right click on the SID key, from step 6 with bak at the end, and click on Delete. (see screenshot above)

9. Click on Yes to confirm deletion. (See screenshot below)

Lỗi virus thêm vào regedit error deleting key năm 2024

10. If there is another SID key with the exact same long number from step 6 for this user account without bak at the end, repeat step 7 first, then right click on this same SID key, and click on Delete. (see screenshot below step 7)

Trên đây là 2 phương pháp nhanh chóng để khắc phục được lỗi Explorer.EXE trên hệ điều hành Windows 10/11 mà Nguyễn Công PC muốn chia sẻ tới bạn đọc. Mong rằng bạn sẽ thực hiện thành công trên máy tính của mình, và đừng ngần ngại chia sẻ nếu bạn có cách làm hiệu quả hơn ở phía dưới phần comment của bài viết nhé!

Phần trước mình đã hướng dẫn các bạn cách để disable TaskManager bằng C bằng cách tạo ra một key mới trong registry. Vậy làm thế nào để enable lại nó? Chúng ta chỉ cần xóa key đó đi trong registry mà thôi, đơn giản đúng không nào.

Nội dung phần 4:

  • Enable Task Manager
  • Disable Registry
  • Enable Registry
  • Disable Msconfig
  • Enable Msconfig
  • Tổng hợp

1. Enable Task Manager.

Chúng ta đã tạo key “DisableTaskMgr” trong đường dẫn:

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem

Vậy giờ chúng ta phải xóa nó đi. Trong cmd có một lệnh để xóa key trong regedit đó là reg delelte, cú pháp của nó cũng tương tự như reg add vậy, bạn có thể gõ reg delete /? để có thể xem chi tiết hơn về lệnh này.

Câu lệnh trong C:

include

int main() { system("reg delete hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disabletaskmgr /f"); return 0; }

2. Disable Registry.

Cái này cũng tương tự như với trường hợp của Task Manager nên mình không nói chi tiết nữa. Bạn cần tạo 1 key mới tên là “disableregistrytools” trong đường dẫn:

HKEY_CURRENT_USERsoftwaremicrosoftwindowscurrentversionpoliciessystem

Đặt cho nó giá trị là 1 với kiểu là REG_DWORD. Câu lệnh trong C:

include

int main() { system("reg add hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disableregistrytools /t reg_dword /d 1 /f"); return 0; }

3. Enable Registry.

Tất nhiên rồi, cách làm cũng giống như enable Taskmanager, bạn chỉ cần xóa cái key vừa tạo đi. Câu lệnh trong C:

include

int main() { system("reg delete hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disableregistrytools /f"); return 0; }

4. Disable Msconfig.

Như bạn đã thấy, chúng ta đã disable Taskmanager và Registry bằng cách tạo thêm key ở regedit trong phần policies để tạo chính sách cấm không truy cập vào 2 công cụ đó, nhưng ở phần này mình sẽ sử dụng 1 cách khác để tiếp cận vấn đề này. Tất nhiên là bạn cũng có thể tạo 1 key trong phần policies để disable Msconfig, nhưng bạn biết đấy, để mở công cụ này ra (hay taskmanager, registry cũng thế) windows sẽ cần phải trỏ đến file exe của công cụ này rồi chạy nó. Và mặc định cho các câu lệnh trong Run như: regedit, msconfig, taskmgr là gì? Là nó là 1 câu lệnh viết tắt cho việc thực hiện lệnh trỏ đến đường dẫn đã được định sẵn của các công cụ kia và chạy nó mà thôi. Vậy giờ nếu ta thay đổi đường dẫn mặc định mà Windows đã thiết lập sẵn đó đến một đường dẫn không đúng thì sao? Câu trả lời rõ ràng sẽ là: lúc đó chương trình sẽ không mở chính xác được nữa.

Và đường dẫn mặc định của Msconfig trong Windows là:

C:WINDOWSPCHealthHelpCtrBinariesMSConfig.exe

Công việc của chúng ta chỉ là tìm ra cái key chứa thiết lập đó và thay đổi nó đi mà thôi. Key đó chính là giá trị mặc định nằm ở đường dẫn:

HKEY_LOCAL_MACHINEsoftwaremicrosoftwindowscurrentversionapp pathsmsconfig.exe

Bạn hãy lưu ý rằng ở đây là có một đường dẫn “App Paths” có chứa dấu cách, và để gõ một đường dẫn trong CMD có chứa dấu cách bạn phải sử dụng dấu đóng mở ngoặc bao quanh đường dẫn đó. Như vậy nếu ta muốn add một key nào đó vào đường dẫn trên thông qua CMD ta phải gõ:

Reg add “HKEY_LOCAL_MACHINEsoftwaremicrosoftwindowscurrentversionapp pathsmsconfig.exe”

chứ không phải là:

Reg add HKEY_LOCAL_MACHINEsoftwaremicrosoftwindowscurrentversionapp pathsmsconfig.exe

Câu lệnh để làm điều này trong C:

include

int main() { system("reg add hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disabletaskmgr /t reg_dword /d 1 /f"); return 0; }

5. Enable Msconfig.

Bạn hãy làm điều ngược lại, thay đổi cái giá trị không đúng kia về giá trị mặc định:

include

int main() { system("reg add "hklmsoftwaremicrosoftwindows" "currentversionapp pathsmsconfig.exe" "" /v "" /d C:WINDOWSPCHealth" "HelpCtrBinariesMSConfig.exe /f"); return 0; }

6. Tổng hợp

Như vậy chúng ta có thể gộp các đoạn code đã biết thành 1 chương trình, thực hiện chức năng disable taskmanager, registry, msconfig lại như sau:

include

int main() { system("reg add hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disableregistrytools /t reg_dword /d 1 /f");

system("reg add hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disabletaskmgr /t reg_dword /d 1 /f");

system("reg add "hklmsoftwaremicrosoftwindows" "currentversionapp pathsmsconfig.exe" "" /v "" /d 1 /f");

return 0; }

Và đoạn code để enable chúng:

include

int main() { system("reg delete hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disableregistrytools /f");

system("reg delete hkcusoftwaremicrosoftwindows" "currentversionpoliciessystem" " /v disabletaskmgr /f");

system("reg add "hklmsoftwaremicrosoftwindows" "currentversionapp pathsmsconfig.exe" "" /v "" /d C:WINDOWSPCHealth" "HelpCtrBinariesMSConfig.exe /f");

return 0; }

Phần sau mình sẽ nói về disable cmd và một số vấn đề mà bạn có thể gặp phải khi sử dụng hàm system() cho những thứ mà chúng ta đã sử dụng ở trên.