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

%_TCAdmin misbehaviour?

Discussion in 'Support' started by mathewsdw, Jun 4, 2012.

  1. mathewsdw

    mathewsdw

    Messages:
    822
    For me, "%_Admin" is always "1" whether I'm in an administrative TCC (title bar reads "Administrator: TC13.04 - ...") instance or not. However, I'd really like to know, in a batch file, whether a given TCC session is running in administrative mode or not. Do I not understand something? If "Yes", how do I find out if the current TCC instance is running in administrative mode from a batch file?
     
  2. vefatica

    vefatica

    Messages:
    5,294
    _ELEVATED
     
  3. mathewsdw

    mathewsdw

    Messages:
    822
    Thank you, Vince. I guess that "%_Admin" being "1" means you are able to elevate?
     
  4. rconn

    rconn Administrator Staff Member

    Messages:
    6,954
    Yes.
     
  5. Steve Pitts

    Steve Pitts

    Messages:
    133
    Slightly ambiguous question and response, methinks. %_admin being zero does not mean that you are unable to elevate. Are there any contexts in TCC/TCMD where being in admin mode but not elevated allows you to do anything to become elevated other than issuing a START /ELEVATED (which you can do whether or not you're logged in as admin, you just have to respond to a (different) UAC prompt)?? I ask mostly out of curiousity as these days I've gotten used to running in pure user mode and only elevating when absolutely necessary.
     
  6. Rod Savard

    Rod Savard

    Messages:
    304
    Perhaps it is more correct to say %_admin is 1 if you are an administrator and can therefor elevate with your current credentials. If 0, you can still elevate but you must enter another user's credentials (who is a local admin).
     
  7. mathewsdw

    mathewsdw

    Messages:
    822
    Just as an aside because some people may find it useful, it's possible to "resurrect" the true "ADMINISTRATOR" account in Windows 7 (and probably Vista, also). And in the ADMINISTRATOR account in Windows 7, at least, both %_Admin and %_Elevated always return 1 (maybe the ultimate source of my confusion in the matter). However, I don't really use it very often because with the facilities provided by TCC (thank you, Rex) and Windows itself ("Run as Administrator") I don't really need it very often (if at all, now) and due to my incompetence due to both my bad memory and my semi-blindness I'd rather not be in Administrative mode all of the time (although I do keep an "Elevated" TCC session open at all times for convenience and try to avoid using it unless I really need it). But both TCC and Windows together have pretty much eliminated the need for the true Administrator account and I really don't strongly recommend "reawakening" it. (Rather than telling everybody how to do it here, I'll just say that doing an appropriate Google search, which is how I found out how to do it, will "dig up" the information if you really want to do it. There might not really be any interest in doing it, anyway.)

    I'll note, just as an aside, that there a few things that Windows 7 won't allow a user to do (I can't tell you exactly what any more, bad memory; although I tend to believe that it's things that Windows Update can do but users can't), even in "elevated" mode. However, I think that that was a good idea because I never ran across (general incompetence ;)) anything like this that I really wanted/needed to do.

    - Dan
     

Share This Page