คำสั่ง 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)
- Backup Registry ก่อน (แนะนำ)
- เปิด regedit ไปที่:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi\{eb004a00-9b1a-11d4-9123-0050047759bc} - ขยาย Key สุดท้าย → หาโฟลเดอร์ 26 → คลิกขวา → Permissions
- กด Advanced → เปลี่ยน Owner → Change → พิมพ์ User Account หรือกด Advanced เลือก → Add Everyone
- ทิ๊ก Replace owner on subcontainers and objects
- กด Add → Select Principal → ใส่ User/Everyone → Full Control → OK ทุกหน้าต่าง
- รีสตาร์ท → ทดสอบ
netsh int ip resetอีกครั้ง
วิธีที่ 2: เปลี่ยน Antivirus (ถ้าเป็นสาเหตุ)
Uninstall AV ที่บล็อก (ผ่าน Control Panel/Settings) → รีสตาร์ท → เลือก AV ที่ดีกว่า
วิธีที่ 3: รันคำสั่ง Network พื้นฐาน (Flush/Renew)
- เปิด CMD as Admin
- รันตามลำดับ:
ipconfig /flushdns ipconfig /release ipconfig /renew
- รอ "Operation completed successfully" → ทดสอบ netsh int ip reset อีกครั้ง
วิธีที่ 4: Reset Winsock
- เปิด CMD as Admin
- รัน:
netsh winsock reset catalog
- รอ "Winsock reset completed successfully" → เช็คปัญหา