I don't see where you actually entered the remote server name. The syntax is: psexec \\server <options>
. If the user running this command doesn't have permissions to the remote server then you'll also need to pass along the credentials to use. The remote server must have file/print sharing enabled for the communication to go through. I've also heard the default admin$
share must be enabled but haven't tested it.
PSexec tool is giving error : communicating with PsExec service on "Hostname": No process is on the other end of the pipe.
I am trying to delete a folder which is used for "Sysmon Archive Files", which is not possible to delete without PSexec tool. But while running the PSexec tool, I am getting this error, while running
"psexec -sid cmd"
Error communicating with PsExec service on "Hostname":
No process is on the other end of the pipe.
I have tried,
pskill \Hostname PSEXESVC
sc config RemoteRegistry start= auto
sc start RemoteRegistry
sc stop psexesvc
sc start psexesvc
sc.exe stop PSEXESVC
Remove-Item –path 'C:\Windows\PSEXESVC.exe'
Remove-Item -Path hklm:\SYSTEM\CurrentControlSet\Services\PSEXESVC -Confirm:$false
Can anyone suggest any solution to be able to run PSexec tool or any native alternative?
2 answers
Sort by: Most helpful
-
Michael Taylor 55,676 Reputation points
2024-11-26T15:14:53.47+00:00 -
MotoX80 34,771 Reputation points
2024-11-26T18:20:21.79+00:00 If you removed the registry key (hklm:\SYSTEM\CurrentControlSet\Services\PSEXESVC) without first deleting the service (sc delete psexesvc) then you will need to reboot in order to get the service control manger back in sync with the registry.
When we last discussed this....
...I had built for you a Powershell script and requested that you set the scheduled task to run as the system account. If psexec can launch a command prompt that runs as the system account and allows you to access that folder, then a powershell script that is also running as the system account should also be able to access those files.
Did you test the script?