Set objWMIService = GetObject("winmgmts:\" & strComputer & " ootcimv2") Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = '" & 映像名称 & "'") For Each objProcess in colProcessList objProcess.Terminate Next
Set objWMIService= GetObject(“winmgmts:“与strcomputer &”ootcimv2”)集colprocesslist = objwmiservice。ExecQuery(“SELECT * FROM win32_process name = "”&映像名称&“”)在colprocesslist每个objprocessobjprocess。终止下一个