Ralph Hulslander says:
Quote:
>I need to stop some processes in W2K. I know how to stop and start Services
>but not associated processes, actually most processes start when the service
>starts but how does one stop them using WSH?
>Thanks for the help or pointers.
Dim procs, proc, wql
wql = "SELECT * FROM Win32_Process"
Set procs = GetObject("winmgmts://").ExecQuery(wql)
For Each proc In procs
If proc.Description = "processname" Then proc.Terminate
Next
Set procs = Nothing
just replace "processname" with the name of the process
----------
Randy Hunt
MCP+I / MCSE
visit www.wshscripting.com