Paexec network folder

Viewed 0

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

1 Answers

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

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"

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.

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

Related