Reputation: 71
Im using this command in php
exec("psexec \\\\192.168.1.3 -u myAccount -p myPassword -i cmd.exe /c START c:\file.doc 2>&1",$output);
var_dump($output);
but the result is wrong
array(2) {
[0]=>
string(62) "'psexec' is not recognized as an internal or external command,"
[1]=>
string(31) "operable program or batch file."
}
Upvotes: 0
Views: 551
Reputation: 4684
make sure that psexec command working fine with your console.
See Click Here
Make sure that user permission and path too.
Upvotes: 1