Process list at 2:30 am? no problem
We were having a problem with a runaway process, and couldn’t determine which application it was coming from, so I write this little vbs script that creates a text file in c:\temp of all the current running processes. Set up the scheduler for every 30 minutes, and the next day we found the culprit. clever, eh?
dim filename
filename = “c:\temp\ProcessList” & day(date()) & “_” & hour(now()) & minute(now()) & “.txt”
dim wshShell
set wshshell = wscript.createobject(“wscript.shell”)
wshShell.run(“WMIC /OUTPUT:” & FILENAME & ” PROCESS get Caption,Commandline,Processid”)
