FUNCTION KillProcess(lcExe,lcMachine) lcMoniker = "winmgmts://" + IIF(!EMPTY(lcMachine),lcMachine + "/","") oWMI = GETOBJECT(lcMoniker) loProcesses = oWMI.InstancesOf("Win32_Process") lcExe = LOWER(lcEXE) FOR EACH loProcess in loProcesses IF LOWER(loProcess.Name) = lcExe IF loProcess.Terminate() = 0 RETURN .T. ENDIF ENDIF ENDFOR RETURN .F.Note you need proper rights on the remote machine to be able to kill the process there, so you need to use an account that is either an admin domain account or an admin account that exists on both machines.