Computer Hope

Microsoft => Microsoft DOS => Topic started by: daryllsilorio on November 16, 2011, 10:40:43 PM

Title: batch file
Post 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.

Title: Re: batch file
Post by: nixie on November 16, 2011, 11:00:38 PM
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.
Title: Re: batch file
Post by: Squashman on December 09, 2011, 07:13:03 PM
Lots of RunAS alternatives that wrap the Credentials into an encrypted exe.
Title: Re: batch file
Post by: Salmon Trout on December 10, 2011, 11:41:47 AM
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.