For each Process in GetObject("winmgmts:{impersonationLevel=impersonate}!//localhost").ExecQuery("select * from Win32_Process") wscript.echo Process.name,process.executablepath Next