Jump to content

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


Recommended Posts

Posted

Although this method is inherently insecure, it should be sufficient security if you're sure that all your users are a bit on the "dumb" side and don't know a thing about this :lol:


Posted
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.

  • 2 years later...
Posted (edited)

Hi,

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")
RunWait("C:\Applications\SIL\FieldWorks\WorldPad.exe")
RunAsSet()

You will need

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

Cheers,

McoreD

Edited by McoreD
Posted
at <hh:mm> /i "cmd.exe"
That doesn't work unless you already have admin, and if you already have admin then having SYSTEM privileges is not that big a step up.
  • 10 months later...
Posted
Hi,

Just an update for v3.

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

Cheers,

McoreD

many thnx :thumbup

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...