Page 1 of 1

Determine user's execution privilege group

Posted: Sun Jan 24, 2010 10:23 am
by SteveTX
Is there a way to discover the current user's execution privilege level, such as if my user has "Administrator" access?

Re: Determine user's execution privilege group

Posted: Sun Jan 24, 2010 6:35 pm
by SteveTX
Dirty Answer:

Code: Select all

   get shell ("net localgroup administrators")
   if it contains $USERNAME then  

Re: Determine user's execution privilege group

Posted: Tue Jan 26, 2010 1:19 am
by SteveTX
For those who are also wondering when your users will be seeing a UAC popup, and at what execution levels will be needed, here is a very handy set of UAC charts.