Quantcast
Viewing all articles
Browse latest Browse all 10386

PsTools : PsExec - Handle is invalid.

Author: twstdude0to1
Subject: PsExec - Handle is invalid.
Posted: 06 December 2013 at 6:14pm

Hi Everyone,

I am trying to use PsExec from PsTools to remotely install some software via a PHP script. Although I am having some issues when I execute the process via PHP (Apache). This is a sample error message below:
The handle is invalid.Connecting to <machinename>...Couldn't access <machinename>:
Connecting to <machinename>...
Although if I run the command via the command prompt on the same server, PsExec will run properly. 

The command I am using is: PsExec.exe \\<remotehost> -u "<username>" -p "<password>" -accepteula "<pathtofile>"

I have tried making the Apache service run under a local administrator account as opposed to the SYSTEM account but I saw no change. Although, I am able to run the ping command and hit remote hosts successfully. It seems that PsExec does not play well when other applications (other than command prompt) run it.

Any ideas?

Thanks,


Edited by twstdude0to1 - 11 hours 45 minutes ago at 6:15pm

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>