Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

Detailed info for running Process

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Hector - 16 May 2006 11:41 GMT
hi. we are having problems with hung processes on a production box onto which
i cannot install any 3rd paty software (e.g. sysinternals). the hung process
will be one of many scheduled tasks all executing as svchost. i would like to
find out which of these tasks is hanging without stopping the task scheduler
or doing anything which might impact our users.

is there any way, via managed code, to get detailed information about a
process. for example it would be useful to know the command line used to
start the process, any files locked by the process, etc. i can get loaded
modules no problem, but this is not particularly helpful in this instance.

thanks

kevin
lgs.lgs - 16 May 2006 12:11 GMT
> i cannot install any 3rd paty software (e.g. sysinternals)

From a command line, run WbemTest.
Click Connect
In the first box, type root\cimv2
Click Connect
Click Enum Instances
Type win32_process
Click ok.
Double click on the processid in question.
Click Show Mof.

This shows a variety of info about the process including command line,
creation time, etc.

Instead of clicking Show Mof, you can also click "Associators".  This will
show the userid of the process and the dlls the process uses.  It will NOT
show locks of any sort.
Kevin Hector - 16 May 2006 12:25 GMT
thats great. thanks.

> > i cannot install any 3rd paty software (e.g. sysinternals)
>
[quoted text clipped - 14 lines]
> show the userid of the process and the dlls the process uses.  It will NOT
> show locks of any sort.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.