Author: rmetzger
Subject: PSEXEC running exe while logged off
Posted: 11 February 2014 at 8:03pm
I am wondering if the problem is accessing \\server\Share\program.exe when not authenticated to the Share. Since it works when logged in, I would suspect authentication would be a likely problem.
Consider copying program.exe to the execution PC's C:\tools\ or C:\Program Files\myprogram\, or what have you, while access to program.exe is accessible (authenticated). Then, the execution from the psexec target C: drive would eliminate access issues, when running psexec while not logged in. Of course, I am not considering what program.exe is doing, and what access it needs to access data or what rights it needs on \\server\share.
Let us know if this is helpful.
Ron Metzger
Subject: PSEXEC running exe while logged off
Posted: 11 February 2014 at 8:03pm
![]() I am trying to run an exec on remote systems and it works fine when the user is logged in but I am needing it to run when no one is logged in. @echo off for /F "usebackq delims==" %%I in ("systems.txt") do Call :begin %%I goto :EOF :begin set srv=%1 :get info psexec \\%srv% -s -d -i "\\server\Share\program.exe" goto :eof |
I am wondering if the problem is accessing \\server\Share\program.exe when not authenticated to the Share. Since it works when logged in, I would suspect authentication would be a likely problem.
Consider copying program.exe to the execution PC's C:\tools\ or C:\Program Files\myprogram\, or what have you, while access to program.exe is accessible (authenticated). Then, the execution from the psexec target C: drive would eliminate access issues, when running psexec while not logged in. Of course, I am not considering what program.exe is doing, and what access it needs to access data or what rights it needs on \\server\share.
Let us know if this is helpful.
Ron Metzger