I am trying to create a script that could be run from servers network share and promt me to type servers local username and password as credentials.

So, .bat file is located at \SERVER\INSTALL\Windows XP\RUN.bat

I want to be able to run "run.bat" from any system in the network without opening cmd.exe as different user. Just double click run.bat from the servers share and it starts up second batch - if credentials are OK.

This is how far i could get. I launch the RUN.bat batch containing lines

runas /env /user:SERVER\USER "\\SERVER\INSTALL\Windows XP\install.bat 

And this should launch the second batch containing the full script, that works fine individually.

When Run.bat asks to type the password for USER - there is an error. Bad username or wrong password. (Local user is created on the server and has enough permissions)

6

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy