List Running Processes - RonsWebRemoteTools

Published Friday, January 09, 2009 6:24 PM

Here is an add-on to Ron's Web Remote Tools page to list all the running processes on a given machine, it will prompt you for the machine/IP details, then open up excel and enumerate all the running processes.

 

Image Name User Name Mem Usage
AppleMobileDeviceService.exe SYSTEM 4,028 k
avgrsx.exe SYSTEM 59,844 k
avgtray.exe SYSTEM 5,036 k
avgwdsvc.exe SYSTEM 2,552 k

 

Edit machrest.asp (take a back up, always better to be on the safe side) add the following around line 80ish or at the end of your other buttons, <input style='WIDTH: 180px' type='button' value='List Running Processes' name='Btn749' ID='Button749'>

Add the following sub near the bottom, before </script>

Sub Btn749_OnClick
compname = trim(document.frmMain.txtValue.value)
Set WShell = CreateObject("WScript.Shell")
set fso = CreateObject("Scripting.FileSystemObject")
strSMSServerName = "ServerName"
strDMSourceFldr = "\\" & strSMSServerName & "\Remote$\"
strcmdending = "\\ServerName\Remote$\ProcessInfo.vbs" & chr(34) & " -c: -h: -m:" & chr(34) & compname & chr(34) & " -a:1"
        wShell.run chr(34) & strDMLocalFldr & strcmdEnding,1,vbfalse
End Sub

Copy ProcessInfo.vbs to your Remote$ share.

Download ProcessInfo rename to .vbs

Credit goes to MeenEnta (aka George K) for sharing the addons, see forum post here

Attachment: ProcessInfo.txt
Filed under:

Comments

No Comments