Jump to content

[How-to] Run app with admin rights while a Limited User


Recommended Posts

Nothing will give you absolute security.

Right - since a normal user can simply run:

at <hh:mm> /i "cmd.exe"

And get a command prompt running as the SYSTEM account in interactive mode - basically complete control of the local system without knowing ANY passwords other than his or her own.

Link to comment
Share on other sites

  • 2 years later...


Just an update for v3.

Instead of

; Set the RunAs parameters to use local adminstrator account
; Run program as admin
; Reset user's permissions

RunAsSet("Administrator", "MIKE-PC", "admin")

You will need

RunAs("Administrator", "", "admin", 1, "C:\Applications\SIL\FieldWorks\WorldPad.exe")



Edited by McoreD
Link to comment
Share on other sites

  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...