I'm installing a remote control application on about 100+ machines The current logged in users can not "Run As Administrator" I'm using the runas command to run as the local admin but it prompts for the password still. Here is my batch command.
@Echo Off
runas /user:localadmin "c:\users\localuser\desktop\control.exe"
Timeout /t 10 >nul
Del "c:\users\localuser\desktop\Install.bat","c:\users\localuser\desktop\control.exe"
Exit
What I get when I run this is "Enter the password for localadmin:"
I always have to enter the password. Then it continues correctly.
How can I automate the input?