Link to home
Start Free TrialLog in
Avatar of Macom
Macom

asked on

Need to monitor running processes.

Hello, I have a Windows 2003 R2 x64 SP1 server that runs complex analytical software. I was wondering if anyone knew of a way that various users could check the running processes for ALL users. All the engineers that use the rools have a need to check the processes. It appears that only an administrator can do this via the checkbox in Task Manager. I don't want to make everyone an admin, and I don't want everyone logging into the server. Is there a method to export all the running processes on the server to a file? I would like this file to possibly be updated frequently. Or maybe some kind of website that has the active content? I looked at Sysinternals Process Explorer, but didn't see a way to export the info automatically.
Thanks for any help.
Avatar of SysExpert
SysExpert
Flag of Israel image

See process explorer from sysinternal.com

Avatar of Macom
Macom

ASKER

Process Explorer didn't get me what I need.
AUtomatically, maybe not, but in combination with a batch file and

Auto-it   FREE scripting tool, keyboard macros

http://www.autoitscript.com/autoit3/

you should be able to do this.

What about a script which is executed via Task Scheduler frequently?


'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim objWMIService, objProcess, colProcess
Dim strComputer, strList
Dim objFSO, file

strComputer = "."

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set file= objFSO.CreateTextFile("C:\CurrentRunningProcesses.txt")


Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colProcess = objWMIService.ExecQuery ("Select * from Win32_Process")

For Each objProcess in colProcess
      file.writeline objProcess.Name & vbCrlf
Next
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASKER CERTIFIED SOLUTION
Avatar of James Montgomery
James Montgomery

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Macom

ASKER

JimboEfx, your solution gave me exactly what I needed. I just had to add some users to the Power Users group and then give the PU group rights to the Perflib key in the remote servers registry and now those users can access it from there pc's using pslist.
Thanks to the rest of you for your answers also.
Avatar of Macom

ASKER

Merowinger,
Not to leave you out, because I know you put together that script, I did try it and couldn't get it to work. I am not a scripter by any means. How would I make that one work? Is it cscript? Do I name it a bat file?
Thanks
no u save it as a .vbs file

it should work as it is listed...i dont think/hope that there arent any errors in! :P