Hi,

I try to execute file with paexec in a remote computer, but this file is located in a network folder. I use this command paexec \\Server_ip -u user domain admin -p password -w \\ip_network folder\target "\\ip_network_folder\target\file.bat". Do you know if is possible because i have errors.

Thank you very much

asked 30 Jul '12, 02:28

cheperun's gravatar image

cheperun
160113
accept rate: 0%

edited 03 Aug '12, 10:48

Doug's gravatar image

Doug ♦♦
10.1k112037


I would expect that to work. Try adding -rlo {log file path} option to see what errors are given. That might help us figure out why it's not working.

Also, I assume for the paths you are doing something like:

\\{server_ip}\share\folder

link

answered 30 Jul '12, 08:50

Doug's gravatar image

Doug ♦♦
10.1k112037
accept rate: 21%

edited 03 Aug '12, 10:47

Hi,

The software show me this error.

CMD.exe was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows Directory.

I try to execute the file from remote server directly and it works fine. The command that i use exactly is:

c:\utils\paexec.exe \\192.168.1.34 -u domain\user -p password \\192.168.1.2\shared\one " \\192.168.1.2\shared\one\execute.bat"

(31 Jul '12, 02:29) cheperun

Does this work with PSExec? Also, does the .bat file depend on the current directory to be set correctly? Based on the error, the default directory can't be UNC but has to be a local folder. You can use the -w option to specify something else.

(31 Jul '12, 09:36) Doug ♦♦

Hi,

Yes with psexec i try too with the option -w but always show that the acces is denied. I use a administrator domain user and i have access to the folder.

Thanks

(31 Jul '12, 09:54) cheperun

Can you post the error you are getting? "Access Denied" is different than the "UNC paths are not supported", so we seem to be making some progress :)

(03 Aug '12, 10:50) Doug ♦♦
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:

×52
×9
×4

Asked: 30 Jul '12, 02:28

Seen: 4,598 times

Last updated: 03 Aug '12, 10:50