4
I am getting the following error if I try to use PsExec (psexec \\MyServer cmd
, nothing fancy)
PsExec v2.1 - Execute processes remotely
Copyright (C) 2001-2013 Mark Russinovich
Sysinternals - www.sysinternals.com
Error establishing communication with PsExec service on MyServer:
Das System kann die angegebene Datei nicht finden.
(Translation of the last part: the system cannot find the file specified)
PsInfo returns:
System information for \\MyServer:
Uptime: 346 days 22 hours 24 minutes 18 seconds
Kernel version: Windows Server 2012 Standard, Multiprocessor Free
Product type: Standard Edition
Product version: 6.2
Service pack: 0
Kernel build number: 9200
Registered organization:
Registered owner: Windows User
IE version: 9.0000
System root: C:\Windows
Processors: 1
Processor speed: 2.9 GHz
Processor type: Intel(R) Xeon(R) CPU X5670 @
Physical memory: 2 MB
Video driver: VMware SVGA 3D
Now I've read that I should kill the PSEXESVC process on the server, stop the service and delete the service. I did that, but as soon as I retry it, it just recreates the service and it keeps running again.
We also tried to disable the virus scanner for a short test, but that didn't work either.
The best thing is: It worked 2 days ago!
I am out of ideas, maybe someone else could give me a hint?
As the answers allude to, I've seen similar issues happen when a server is managed with different versions of PSEXEC, and one doesn't exit cleanly. Some versions don't seem to be cross compatible. This is why running the version on the server may work (if it was the one that got stuck) or why stopping the service usually works (to clear the way for any version). – GuitarPicker – 2017-10-30T16:19:36.360
1Are you running this as administrator? If not, does that make a difference? – Der Hochstapler – 2014-03-28T12:06:54.127
2is the user account you are running psexec under, or the account specified in the command itself an admin on the target system? psexec needs the rights on the target system to install and start a service. – Frank Thomas – 2014-03-28T12:32:50.037
@FrankThomas Ok, looks like it really was some kind of account problem. I've tried to use -u and -p to connect with username and password, that didn't work. But starting a cmd prompt under the user that has access to the server works. – Feroc – 2014-03-28T13:09:40.970