I have the following VBS script for ending a process on a remote pc.
as follows
strComputer = "COMPUTERNAME"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'PROCESSNAME'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
However if I want to run this on the whole of an OU how should I go
about this? I can get a list of pcs into a text file, but how do I
have it so that the computer name is sourced from this list?
Thanks
Dan