Computer Hope
Microsoft => Microsoft DOS => Topic started by: daryllsilorio on November 16, 2011, 10:40:43 PM
-
Hi
Good day!
Need help here, I'm planning to create a batch file that would run as the application as admin.
I want to run the application to those user who doesnt have admin rights and I'm not planning
to give them as well.
Any reply is very much appreciated.
-
You will want to do 2 things.
Use RUNAS to elevate privileges for the batched instructions.
Compile the batch to EXE to hide your admin user/password from curious eyes. Its not perfect in hiding your credentials, but its better than keeping it as a .bat and having it able to be viewed by anyone curious.
-
Lots of RunAS alternatives that wrap the Credentials into an encrypted exe.
-
its better than keeping it as a .bat and having it able to be viewed by anyone curious.
Anyone curious can view a compiled batch.