Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file  (Read 3560 times)

0 Members and 1 Guest are viewing this topic.

daryllsilorio

    Topic Starter


    Intermediate

  • "Say hello to my little friend!"
    batch file
    « 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.

    maygering

    nixie



      Beginner

      Thanked: 7
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: batch file
    « Reply #1 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.

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: batch file
    « Reply #2 on: December 09, 2011, 07:13:03 PM »
    Lots of RunAS alternatives that wrap the Credentials into an encrypted exe.

    Salmon Trout

    • Guest
    Re: batch file
    « Reply #3 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.