Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Need Info about User Accounts


Message #1 by MSpruill <mspruill@m...> on Thu, 24 Jan 2002 10:01:43 -0500
Look and see if they're a member of the Administrators group?

NetUserGetGroups API.   And perhaps NetUserGetLocalGroups.

Should be OK on all the OSs,  but may require special permissions under XP.

You almost certainly have to be running as an authenticated user.

## dave ##




> When a person sign on a win2000 machine, is there a way to determine the
> type of account they are using?
> 
> 1. What I'm looking for is to determine if the account is the 
administrator
> account.
> 2. Does this person have administrator permissions?
> 3. What group does this person belong to?
> 
> I need to know this for NT and XP also...
> 
> Thanks Gang.
> 
> Mitch Spruill
> Mannatec, Inc.
> 

  Return to Index