Volleynerd Knowledge Base

Friday, March 18, 2005

Script to enumerate processes


Pretty cool script (I think using WMI query syntax) to enumerate processes.

For Each Process in
GetObject("winmgmts:{impersonationLevel=impersonate}!//rogue").ExecQuery
("select * from Win32_Process where Name='notepad.exe' ")
Process.Shutdown (0)
Next

Google Groups : microsoft.public.windowsxp.help_and_support




Comments: Post a Comment

Home