Find out if account sid has administrator privileges

  • Thread starter Thread starter John Dumais
  • Start date Start date
J

John Dumais

Hello,

I'm trying to figure out if I can find out if an account has administrator
privileges given just a sid I got from LookupAccountName. Normally, I would
just call LogonUser & grope through the returned token looking for group
sids that match the administrator alias, but my IT guys got all wrapped
around the axle when they saw I wanted to call LogonUser.

Thanks.
John Dumais
(e-mail address removed)
 
CheckTokenMembership. The Platform SDK entry for the API has sample code to
check for membership in the local administrators group.
 
Back
Top