VBScript Get List Of Running Processes And Executable Path

Example of how to get a list of currently running processes and the executable path using VBScript

The Win32_Process class makes available lots of information about the running process

dim service, Process

set service = GetObject ("winmgmts:")

for each Process in Service.InstancesOf ("Win32_Process")
	wscript.echo Process.Name & " " & Process.ExecutablePath