List running NT4.0 processes & applications 
Author Message
 List running NT4.0 processes & applications

Can any one tell us how to build a VBScript file which could list all running
processes on an NT 4.0

Thanks



Tue, 27 May 2003 02:06:20 GMT  
 List running NT4.0 processes & applications
(requires WMI installed)...

set stdout = wscript.stdout
set stdin = wscript.stdin
set wmi = getobject("winmgmts:")
sQuery = "select * from win32_process"
set processes = wmi.execquery(sQuery)
write processes.count & " processes"
for each process in processes
  write process.name
next

write "Finished... Press ENTER to continue"
read

wscript.quit

sub write(s): stdout.writeline s: end sub
function read(): read = stdin.readline: end function

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Can any one tell us how to build a VBScript file which could list all
running
processes on an NT 4.0

Thanks



Thu, 29 May 2003 07:31:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to list all processes running on a NT4

2. List Tasks and Processes on NT4

3. Checking if a process is running under NT4 - Using WSH

4. Checking if a process is running under NT4 - Using WSH

5. Run backround application without being listed among the applications of the windows task manger

6. Run backround application without being listed among the applications of the windows task manger

7. VB 4.0 application running on NT4.0, can't delete .exe

8. Run an application as another user on NT4 workstation

9. Use WMI to list running processes - Can't open Kill.vbs

10. Use WMI to list running processes

11. How to get a list of running processes in NT 4.0

12. How to Hide An application from Process List

 

 
Powered by phpBB® Forum Software