I want to execute a file on a share but I need to use a domain account to access it. I've tried runas /user:domain\user \\someshare\foo.exe. It prompts for the domain account's password, which I enter, but then I get "RUNAS ERROR: Unable to run... 2: The system cannot find the file specified." Is this possible with runas? Is there another way to accomplish this from command line?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
|
|
Network connections are per-session and aren't carried over by You need to |
|||
|
|
|
If you only need to use the admin account to access the file, have you tried using the |
|||
|
|
|
You'll need to map the drive. use Net use to do this then use the runas to the drive letter you assign. (like |
|||||||
|