Service บน Windows ไม่ทำงาน Start Stop ก็ไม่ได้จาง
สมมุติ Remote Desktop Service ไม่ทำงาน เข้า Service กด Start Restart Stop ไม่ได้ จาง หรือ หายไป
เข้า Command Line พิมพ์
C:\Windows\system32>net start TermService (Enter) ระบบแสดง
The service is starting or stopping. Please try again later.
C:\Windows\system32>net stop TermService (Enter) ระบบแสดง
The service is starting or stopping. Please try again later.
ค้นหา Service
C:\Windows\system32>tasklist /svc | findstr /C:TermService(Enter) ระบบแสดง
svchost.exe 436 TermService
แสดงว่า TermService มีอยู่แต่ติดต่อไม่ได้ PID 436 ต้อง Kill process ทิ้ง
C:\Windows\system32>taskkill /F /PID 436 (Enter)
SUCCESS: The process with PID 436 has been terminated.
สั่ง Start ใหม่
C:\Windows\system32>net start TermService
The Remote Desktop Services service is starting.
The Remote Desktop Services service was started successfully.