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

แก้ไขข้อผิดพลาด 'Dependency Service or Group Failed to Start' ใน Windows

Fix The Dependency Service or Group Failed to Start: หากเจอข้อผิดพลาด "The Dependency Service or Group Failed to Start" เป็นเพราะ Windows Services ไม่เริ่มต้น ดูเหมือนไฟล์ Windows ถูกจับผิดว่าเป็นไวรัส จึงเสียหาย และขัดแย้งกับ Network Location Awareness Service หน้าที่หลักของบริการนี้คือ รวบรวมและเก็บข้อมูลการตั้งค่าเครือข่าย และแจ้งเตือน Windows เมื่อข้อมูลเปลี่ยนแปลง หากบริการนี้เสียหาย โปรแกรมหรือบริการที่ขึ้นอยู่กับมันจะล้มเหลวด้วย Network List Service จะไม่เริ่ม เพราะขึ้นอยู่กับ Network Location Awareness Service ที่ถูกปิดใช้งานเนื่องจากการตั้งค่าเสียหาย Network Location Awareness Service อยู่ใน nlasvc.dll ที่ตั้งอยู่ใน System32 Directory

แก้ไขข้อผิดพลาด  Dependency Service or Group Failed to Start  ใน Windows

จะเห็นข้อผิดพลาดต่อไปนี้เมื่อพยายามเชื่อมต่อเครือข่าย:

ไอคอนเครือข่ายบน System Tray แสดง X สีแดง พร้อมข้อความ – Connection status: Unknown The dependency service or group failed to start

ปัญหาหลักคือ ผู้ใช้ไม่สามารถเชื่อมต่ออินเทอร์เน็ตได้ แม้เชื่อมต่อด้วยสาย LAN หากรัน Windows Network Troubleshooter จะแสดงข้อผิดพลาดอีกอย่าง "The Diagnostic Policy Service is not running" และปิดโดยไม่แก้ไขปัญหา เพราะบริการที่จำเป็นสำหรับการเชื่อมต่ออินเทอร์เน็ต คือ LocalService และ NetworkService ถูกทำลายหรือถูกลบออกจาก PC

แก้ไขข้อผิดพลาด  Dependency Service or Group Failed to Start  ใน Windows

ทั้งสองกรณีแก้ไขได้ง่าย ผู้ใช้ที่ได้รับผลกระทบมักได้การเชื่อมต่ออินเทอร์เน็ตกลับมา ทันทีที่ข้อผิดพลาดแก้ไขเสร็จ มาเริ่ม แก้ไข The Dependency Service or Group Failed to Start Error ด้วยคู่มือด้านล่าง

แก้ไขข้อผิดพลาด  Dependency Service or Group Failed to Start  ใน Windows

แก้ไข The Dependency Service or Group Failed to Start

ควรสร้างจุดกู้คืนระบบ (Restore Point) ก่อนลองวิธีใดๆ

วิธีที่ 1: เพิ่ม Localservice และ Networkservice เข้ากลุ่ม Administrators

  1. กด Windows Key + X เลือก Command Prompt (Admin)
  2. พิมพ์คำสั่งใน cmd กด Enter ทีละคำสั่ง:
    net localgroup administrators localservice /add
    net localgroup administrators networkservice /add
  3. ออกจาก Command Prompt และ รีบูทเครื่องเพื่อบันทึกการเปลี่ยนแปลง

หลังรีบูท คุณควร แก้ไข The Dependency Service or Group Failed to Start แล้ว

วิธีที่ 2: ให้สิทธิ์ Network และ Local Service Accounts เข้าถึง Subkeys ทั้งหมดใน Registry

  1. ดาวน์โหลด SubInACL Command-line Tool จาก Microsoft
  2. ติดตั้ง และรันโปรแกรม
  3. เปิด Notepad บันทึกไฟล์ชื่อ permission.bat (นามสกุลไฟล์สำคัญ) เปลี่ยน Save as type เป็น "All files" ใน Notepad
    subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\system\CurrentControlSet\services\NlaSvc" /grant="Local Service"
    subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\system\CurrentControlSet\services\NlaSvc" /grant="Network Service"
  4. หากเจอปัญหาสิทธิ์กับ DHCP รันคำสั่งด้านล่าง:
    subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\system\CurrentControlSet\services\dhcp" /grant="Local Service"
    subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\system\CurrentControlSet\services\dhcp" /grant="Network Service"
  5. รีบูทเครื่องเพื่อบันทึกการเปลี่ยนแปลง

วิธีที่ 3: เปิดบริการที่จำเป็นด้วยตนเอง (Manually Turn on Required Services)

  1. กด Windows Key + R พิมพ์ services.msc กด Enter
  2. ตรวจสอบให้บริการต่อไปนี้ กำลังทำงาน (Running) และ Startup type เป็น Automatic:
    Application Layer Gateway Service
    Network Connections
    Network Location Awareness (NLA)
    Plug and Play
    Remote Access Auto Connection Manager
    Remote Access Connection Manager
    Remote Procedure Call (RPC)
    Telephony
  3. คลิกขวาเลือก Properties สำหรับบริการข้างต้น คลิก Start หากยังไม่ทำงาน ตั้ง Startup type เป็น Automatic ทำสำหรับทุกบริการข้างต้น
  4. รีบูทเครื่อง ตรวจสอบอีกครั้งว่าปัญหาแก้ไขหรือยัง
  5. หากยังเจอปัญหา ให้เริ่มบริการเหล่านี้และตั้ง Startup type เป็น Automatic:
    COM+ Event System
    Computer browser
    DHCP Client
    Network Store Interface Service
    DNS Client
    Network Connections
    Network Location Awareness
    Network Store Interface Service
    Remote Procedure Call
    Remote Procedure Call (RPC)
    Server
    Security Accounts Manager
    TCP/IP Netbios helper
    WLAN AutoConfig
    Workstation

หมายเหตุ: ขณะรัน DHCP Client อาจได้ข้อผิดพลาด "Windows could not start the DHCP Client Service on Local Computer. Error 1186: Element not found." เพียงละเว้นข้อความนี้

แก้ไขข้อผิดพลาด  Dependency Service or Group Failed to Start  ใน Windows

เช่นเดียวกัน อาจได้ "Windows could not start the Network Location Awareness service on Local Computer. Error 1068: The dependency service or group failed to start" ขณะรัน Network Location Awareness Service อีกครั้ง ละเว้นข้อความนี้

วิธีที่ 4: รีเซ็ต Network Adapter

  1. กด Windows Key + X เลือก Command Prompt (Admin)
  2. พิมพ์คำสั่งใน cmd กด Enter ทีละคำสั่ง:
    netsh winsock reset catalog
    netsh int ip reset reset.log hit
  3. จะได้ข้อความ "Successfully reset the Winsock Catalog."
  4. รีบูทเครื่อง จะ แก้ไข The Dependency Service or Group Failed to Start error

วิธีที่ 5: รีเซ็ต TCP/IP เป็นค่าเริ่มต้น

  1. กด Windows Key + X เลือก Command Prompt (Admin)
  2. พิมพ์คำสั่งใน cmd กด Enter ทีละคำสั่ง:
    ipconfig /flushdns
    nbtstat –r
    netsh int ip reset reset c:\resetlog.txt
    netsh winsock reset
  3. รีบูทเพื่อใช้การเปลี่ยนแปลง การ Flush DNS แก้ไข The Dependency Service or Group Failed to Start

วิธีที่ 6: แทนที่ nlasvc.dll ที่เสียหาย

  1. ต้องมีการเข้าถึงคอมพิวเตอร์ที่ทำงานปกติ ไปที่ไดเรกทอรีในระบบที่ทำงาน:
    C:\windows\system32\nlasvc.dll
  2. คัดลอก nlasvc.dll ไป USB แล้วเสียบ USB เข้า PC ที่ไม่ทำงาน แสดงข้อผิดพลาด "The Dependency Service or Group Failed to Start."
  3. กด Windows Key + X เลือก Command Prompt (Admin)
  4. พิมพ์คำสั่งใน cmd กด Enter ทีละคำสั่ง:
    takeown /f c:\windows\system32\nlasvc.dll
    cacls c:\windows\system32\nlasvc.dll /G your_username:F
    หมายเหตุ: แทนที่ your_username ด้วย Username ของ PC คุณ
  5. ไปที่ไดเรกทอรี:
    C:\windows\system32\nlasvc.dll
  6. เปลี่ยนชื่อ nlasvc.dll เป็น nlasvc.dll.old คัดลอก nlasvc.dll จาก USB มาทับที่นี่
  7. คลิกขวาไฟล์ nlasvc.dll เลือก Properties
  8. ไปแท็บ Security คลิก Advanced
  9. ภายใต้ Owner คลิก Change พิมพ์ NT SERVICE\TrustedInstaller คลิก Check Names
  10. คลิก OK บนกล่องโต้ตอบ คลิก Apply ตามด้วย OK
  11. รีบูทเครื่องเพื่อบันทึกการเปลี่ยนแปลง

วิธีที่ 7: Repair Install Windows 10

วิธีนี้เป็นทางเลือกสุดท้าย เพราะหากไม่มีวิธีไหนทำงาน วิธีนี้จะซ่อมแซมปัญหาทั้งหมดของ PC แน่นอน Repair Install ใช้ In-place Upgrade เพื่อซ่อมแซมปัญหาระบบโดยไม่ลบข้อมูลผู้ใช้ มาตามบทความนี้เพื่อดู วิธี Repair Install Windows 10 อย่างง่าย

แนะนำสำหรับคุณ:

  • แก้ไข Restart your computer to install important updates loop
  • วิธีแก้ไข File System Errors บน Windows 10
  • แก้ไข Windows Update cannot currently check for updates
  • แก้ไข cannot play MOV Files on Windows Media Player

เสร็จแล้ว คุณ แก้ไข The Dependency Service or Group Failed to Start สำเร็จ หากยังมีคำถาม สามารถถามในส่วนความคิดเห็นได้เลย