Hi,

I am trying to get the output from running a cmd on a remote computer.

Here is my syntax:

paexec -accepteula remoteIP -h -u "*" -p "*" hostname

Here is the output that I am getting:

Connecting to RemoteIP... Failed to connect to \RemoteIPADMIN$. The network path was not found. [Err=0x35, 53] Failed to copy [C:Program FilesVirima Discovery Applicationtoolspswin_paexec.exe] to [\RemoteIPADMIN$PAExec-12148-XYZ01.exe] -- going to try to continue anyway. The network path was not found. [Err=0x35, 53] Starting PAExec service on RemoteIP... Failed to connect to \RemoteIPIPC$. The network path was not found. [Err=0x35, 53] Failed to connect to Service Control Manager on RemoteIP. The RPC server is unavailable. [Err=0x6BA, 1722]

PAExec returning exit code -6

Please need an assistance.

Thanks Mifi.

This question is marked "community wiki".

asked 26 Aug '20, 06:39

Mifi's gravatar image

Mifi
3134
accept rate: 0%

edited 26 Aug '20, 06:41


Hi Mifi

You have asked this same question before. Here is a link to that question and the answer you accepted.

http://support.poweradmin.com/osqa/questions/3329/paexec-returning-exit-code-6

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 26 Aug '20, 14:28

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Hi,

Quinn

By following below link I enabled the smb1 protocol.

https://www.prajwaldesai.com/cant-connect-to-file-share-obsolete-smb1-protocol/

After enabling smb1 protocol on my machine, I ran the below set of cmd from my machine and got the output with exit code 0.

paexec -accepteula RemoteIP1 -h -u "" -p "" hostname

But on running the same set of cmd on different remote machine from my machine throwing error with exit code -6

paexec -accepteula RemoteIP2 -h -u "" -p "" hostname

Connecting to RemoteIP... Failed to connect to RemoteIPADMIN$. The network path was not found. [Err=0x35, 53] Failed to copy [C:Program FilesVirima Discovery Applicationtoolspswin_paexec.exe] to [RemoteIPADMIN$PAExec-12148-XYZ01.exe] -- going to try to continue anyway. The network path was not found. [Err=0x35, 53] Starting PAExec service on RemoteIP... Failed to connect to RemoteIPIPC$. The network path was not found. [Err=0x35, 53] Failed to connect to Service Control Manager on RemoteIP. The RPC server is unavailable. [Err=0x6BA, 1722]

PAExec returning exit code -6

Thanks Mifi.

link

answered 27 Aug '20, 09:29

Mifi's gravatar image

Mifi
3134
accept rate: 0%

Hi Mifi,

As the error is stating that it can't find the network path, have you checked to make sure that it is correct? Have you check to make sure that you are using good conditionals?

You may also want to check to make sure the the RPC service is running on the remote machine and that you can access it from the network.

Thanks Quinn

link

answered 27 Aug '20, 15:42

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

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
×14
×1

Asked: 26 Aug '20, 06:39

Seen: 7,562 times

Last updated: 27 Aug '20, 15:42