I must kill remotely a process (for example calc.exe) but when I try to load my PHP page on internet it keeps loading and does nothing here is multiple techniques I have used but none of them work:
exec("pskill \\\\ipadress calc -u user -p pass")
exec("pskill \\ipadress calc -u user -p pass")
exec("pskill \\\\ipadress calc -u user -p pass >NUL")
exec("C:\Windows\system32\cmd.exe /k kill_myprogram.bat");
--> "pskill \\ip calc.exe -u user-p pass"
and:
WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("cmd /C C:\path\toto.vbs", 0, false);
---> Set OShell=CreateObject("Wscript.Shell")
strCommand="pskill \\adress -u user -p pass program"
OShell.Run strCommand
$oExec = $WshShell->Run("cmd /C C:\path\kill_myprogram.bat", 0, false)