ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Killing a Windows service that’s stuck on stopping or starting

user-image
تم إضافة السؤال من قبل mohammad hammad , Assistant – IT Manager , Asriyya schools
تاريخ النشر: 2014/04/16
ramiz kittaneh
من قبل ramiz kittaneh , IT and Cloud manager / IT Deputy , TAG Global

taskkill /f / service Name

مستخدم محذوف‎
من قبل مستخدم محذوف‎

Make note of the service's short name Make note of the service's short name

In Server Manager, find the stuck service and double click it. Make note of the service's short name (also known as registry name). For example, POP3 might be called POP3Svc or MSExchangePOP3, depending on your version of MS Exchange.

Find out the PID Find out the PID

Launch a command prompt (for Windows2008 or later, run as administrator).

Type the following, where servicename is the service name that you noted above, and hit Enter.

sc queryex servicename

From the results of this query, jot down the PID.

Run Taskkill Run Taskkill

Still at the same command prompt, type the following and hit Enter, where [PID] is the PID that you just wrote down.

taskkill /f /pid [PID]

This will forcibly kill the frozen service. You can now return to Server Manager and restart the service.

المزيد من الأسئلة المماثلة