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.batAnd 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