Answer the question
In order to leave comments, you need to log in
How to run exe on another computer with network shares?
Good afternoon.
The question is in the title. How to use psexec to launch an executable from a network drive on a remote computer? I mean something like this:
psexec \\domainuser -h -u domain\admin -p adminpass cmd /c "\\fs\123.exe"
But the problem is that the ball is not available from his computer. Where can I enter the login and password to access the network drive?
Answer the question
In order to leave comments, you need to log in
The process will be launched on the computer that you call "domainuser" as the user "domain\admin", so the accessibility of the share must be checked on behalf of the admin, and not the user of the remote PC.
From the manual:
If no username is given, then the remote process runs from the same account as the PsExec program. However, since the remote process is an impersonation, it will not have access to the remote system's network resources. If a username is specified, the remote process runs under the specified account and accesses the same network resources on the remote system as the account. Note that the password is sent to the remote system in clear text.
Is it mandatory to use psexec? Maybe it's easier to put Radmin, and when you need to scare the user by opening the balls and launching 123.exe through the GUI, with entering the login password by hand? Or do the same through RDP, but there can be difficulties if there is no password on the PC, and there is no point in making it unprotected over the network.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question