HowTo: System Admin - Remotely Log Memory of Processes Greater Than X
If you ever wanted to remotely log memory usage (and CPU usage) of processes, you can use "tasklist"
The key is, "tasklist /s" and then the remote computer name. That along with filters you can query and log process info remotely with no more than a cmd window, or batch file in a scheduled task.
For example, here is how you would log processes with memory over 25000 KB
tasklist /s remotecomputername /fi "memusage gt 25000" >> c:\mem.txt
take a look at the tasklist help by typing "tasklist /?" at the cmd prompt. You can see how all the filter work. You can filter by PID, Image Name, etc. Pretty sweet. BTW it does work on your local machine too, just remove the /s computername
Simlar Posts
- IISAdmin doesnt start (IIS Admin 2147418113)
- Salon Transcripts (STX) - Using Remotely - Opening Ports, Port Forwarding
- What Have I Been Up To? Windows 2008, Drive Backups, VS2008 Web Programming, SSIS Stuff
- How To: Connect to SQL Server, VS TFS, etc using Windows Authentication when computer is not on Active Directory Domain (XP and Vista!)
- Windows Update Crazy Error (on XP)? This Might Fix It

Leave a Reply