How to find the processes linked to a service

1930 pts.
Tags:
Processes
Services
Windows Server 2003
On a Server I look after a Trend-Micro service was stuck in the stopping state.

As I couldn't stop/start it even from the command prompt I figured that it must be waiting on something else before it can stop. I closed Trend and this didn''t make a difference; I checked all the running processes and luckily recognised one as a Trend process.

Once I closed that the service could stop but I am wondering how I can find out what process is holding back a service without looking at the whole list of running processes and guessing.

Thanks



Software/Hardware used:
Windows SBS 2003 32bit, Trend Micro Client/Server Security

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can issue a command similar to <b>tasklist /svc /fi “imagename eq svchost.exe”</b> where you replace svchost.exe with the running service or task name to see what is linked to it.

This blog entry on <a href=”http://itknowledgeexchange.techtarget.com/it-trenches/nifty-tools-for-tracking-down-that-interesting-network-traffic/”>Nifty tools for tracking down that “interesting” network traffic</a> may also help you with similar tasks.

===================

SysInternals has great tools for viewing, managing and debugging processes:

GUI Bassed
Process Explorer – Procmon.exe
Process Monitor – procexp.exe
Process Dump – procdump.exe

Command line PS Tools
– psexec.exe
– psfile.exe
– psgetsid.exe
– Psinfo.exe
– pskill.exe
– pslist.exe
– psloggedon.exe
– psloglist.exe
– pspasswd.exe
– psservice.exe
– psshutdown.exe
– pssuspend.exe

MS purchased SysInternals and all the information is now available on TechNet. There are some very good tutorials on diagnosing issues using the tools.

You can also look in the Services Control Panel to see what are a services dependencies.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following