Could not start PsExec service on target machine. Access is denied.
Hi, I am trying to execute psexec command to remote machine. My command is psexec -u domain\user -p password \\machineName -c abc.bat I am trying from windows 7(64 bit) machine. The remote machines are xp and windows 7(32 and 64 bit). In XP machines, it is working and also in some windows 7 machines. But in some windows 7 machines it give message- "Could not start PsExec service on target machine. Access is denied." If I try to execute psexec command from XP machines, it works to all machines. Suddenly what happen I do not know but one of the windows 7 machine( where psexec was not starting) , psexec started. but not in other machines. Now I am very much confuse here exactly what happen. and what is the issue. Please help. It urgent. Thanks.
November 1st, 2011 3:45am

It's not going to work with UAC enabled for the account on the target machine.
Free Windows Admin Tool Kit Click here and download it now
November 7th, 2011 2:46pm

JS2010 I don't believe that is true. All machines in my enviroment have UAC turned on and no user has Admin rights to the machine and I can access all machines. The solution is the one provided by Niki Han Even though you stating which user account to execute the command on the remote system it excutes the psexec command as the user that opened the command window. Right-clicking on cmd and hitting run as administrator then using the string with -u and specifying a user with admin rights to the machines you are attached to should work 90% or more of the time. I have come accross a few computers that even this didn't work and those machines actually had system errors that we had to fix. Thanks SeanMCTS: Windows 7
November 7th, 2011 7:14pm

any solution about it ? thxShould "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackoverflow.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts
Free Windows Admin Tool Kit Click here and download it now
February 8th, 2012 11:04am

Confirmed...do a "run as" for your command prompt (with the account you will need on the remote system) and use the -h param for psexec and don't even bother with the -u and -p params.
June 7th, 2012 10:30am

I know You already have your answer, but you should also try -h key. For example: psexec -u Domain\Username -p password \\targetmachine -c -h program.bat
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2012 9:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics