1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

detect Vista privilege elevator

Discussion in 'Support' started by igs, Jul 30, 2008.

  1. igs

    igs

    Joined:
    Jul 30, 2008
    Messages:
    2
    Likes Received:
    0
    Hello,

    I'm not sure if this is a simple to answer question or if it is a feature request or an error report:

    Is there any way to detect inside a 4NT/TCC session under Vista if it was started using 'Run as Administrator'?

    %_admin is always 1 on my Vista account. From my point of view that is not correct if a session was not run using 'Run as Administrator'.

    Thanks
    Marko
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    igs wrote:

    It's a feature request.

    You're looking for an internal variable that says whether the process is
    elevated, not whether the user is an administrator. There isn't
    currently any internal way of detecting that (it's on the suggestion
    list for the next version). There are some third-party utilities that
    do this.

    Rex Conn
    JP Software
     
  3. Roedy

    Joined:
    Jun 8, 2008
    Messages:
    120
    Likes Received:
    2
    Did this ever make it into Windows 10? It is more important now that Windows 10 blocks so many thing innocent things.
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,299
    Likes Received:
    39
    It's called _ELEVATED.
     

Share This Page