note 81544 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 24 Nov 2019 08:41:50 +0000 |
| Subject: | note 81544 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213198@lists.php.net to get a copy of this message | ||
Note Submitter: stefanfj at gmx dot de
----
If you try to use the psexec from Sysinternals on your Windows Server for background-processes that
need special user-rights and get an "Access denied" oder "Wrong user or
password" notice, although your username and password is right, this could help you getting
around this bug.
<?php
$command = "c:\directory1\psexec.exe \\127.0.0.1 -u username -p password
c:\directory2\commandtoexecute.exe";
exec($command);
?>