Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

วิธีแก้ไขปัญหา 'netsh int ip reset' Failed (Access Denied) บน Windows

คำสั่ง netsh int ip reset ใช้แก้ปัญหา Network โดยเขียน Registry TCP/IP ใหม่ (เหมือน Reinstall Protocol) แต่หลายคนเจอ "Access is denied" ทำให้รันไม่ได้

สาเหตุของ netsh int ip reset Failed

  • ขาดสิทธิ์เข้าถึง netsh.exe - ไม่มี Permission ที่ Registry Key ของ netsh.exe แก้ได้โดย Take Ownership
  • Antivirus บล็อก (เช่น Avast) - AV บางตัวบล็อกคำสั่งนี้ ลองปิด AV หรือเปลี่ยน AV
  • Network Misc Issues - ปัญหา Network ทั่วไป ที่คำสั่งอื่นอาจช่วยได้

วิธีที่ 1: ให้สิทธิ์ Full Control ให้ netsh.exe (Registry Editor)

  1. Backup Registry ก่อน (แนะนำ)
  2. เปิด regedit ไปที่:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a00-9b1a-11d4-9123-0050047759bc}
  3. ขยาย Key สุดท้าย → หาโฟลเดอร์ 26 → คลิกขวา → Permissions
  4. กด Advanced → เปลี่ยน Owner → Change → พิมพ์ User Account หรือกด Advanced เลือก → Add Everyone
  5. ทิ๊ก Replace owner on subcontainers and objects
  6. กด Add → Select Principal → ใส่ User/Everyone → Full Control → OK ทุกหน้าต่าง
  7. รีสตาร์ท → ทดสอบ netsh int ip reset อีกครั้ง

วิธีที่ 2: เปลี่ยน Antivirus (ถ้าเป็นสาเหตุ)

Uninstall AV ที่บล็อก (ผ่าน Control Panel/Settings) → รีสตาร์ท → เลือก AV ที่ดีกว่า

วิธีที่ 3: รันคำสั่ง Network พื้นฐาน (Flush/Renew)

  1. เปิด CMD as Admin
  2. รันตามลำดับ:
    ipconfig /flushdns
    ipconfig /release
    ipconfig /renew
  3. รอ "Operation completed successfully" → ทดสอบ netsh int ip reset อีกครั้ง

วิธีที่ 4: Reset Winsock

  1. เปิด CMD as Admin
  2. รัน:
    netsh winsock reset catalog
  3. รอ "Winsock reset completed successfully" → เช็คปัญหา