Hi, I am trying to exite cmd process on remote machine using PAEXEC. It failing with below output returning exit code -7. I am able to do it successfully with psexec.

C:windowssystem32>C:PSToolsPaexec.exe \remotemachineIP -u username-p Password -s -x cmd

PAExec v1.27 - Execute Programs Remotely Copyright (c) 2012-2019 Power Admin LLC www.poweradmin.com/PAExec Connecting to remotemachineIP... Starting PAExec service on remotemachineIP... Timed out waiting for communication channel to remotemachineIP. The system cannot find the file specified. [Err=0x2, 2] Failed to stop PAExec service. The service has not been started. [Err=0x426, 1062]

PAExec returning exit code -7

asked 09 Aug '20, 06:35

Venkat%20Manindra's gravatar image

Venkat Manindra
112
accept rate: 0%

edited 09 Aug '20, 06:38


Hi Venkat,

The return codes for PAExec are listed on the home page. https://www2.poweradmin.com/paexec/

The return code -7 means that PAExec could not communicate with remote PAExec service. Most of these types of errors are permissions related.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray checkmark to the left of the answer.

link

answered 10 Aug '20, 09:47

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Hi Quinn, Thanks for the reply. Can I know what are all the permissions I can provide. As I covered most of them while trying psexec.

(10 Aug '20, 10:05) Venkat Manindra

Venkat, how the PAExec service works is that it copies PAExec to the remote server and then runs that service. The two services then communicate with each other based on scripts or commands that are running. If the remote PAExec service can't connect back to local server it through the -7 error. So at this point the permissions is not the issue as it has already connected to the remote server. The issue is that something is keeping the running PAExec from talking with each other.

(10 Aug '20, 13:54) Quinn ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×60
×9

Asked: 09 Aug '20, 06:35

Seen: (+: (DEFAULT: ), 1) times

Last updated: 10 Aug '20, 13:54