Whether Logged on User has Administrator Privilages or not

G

Guest

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

Hi Everyone
Is there are any APIs in Active Directory that provides functionalities to
identify whether logged on user has administrator privileges or not, in
Windows 2000 or Windows 2003.

And the APIs to find out groups to which user belongs ,in windows 2000 or
2003

thanks
shridhar
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

You can use Active Directory Scripting Interface, ADSI.
Have a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnactdir/html/BuildingADApps.asp

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
------------------------------------------------
http://www.chrisse.se - Active Directory Tips

"Shridhar" <shridhar_1sep@hotmail.com> skrev i meddelandet
news:egVGlKoEFHA.3992@tk2msftngp13.phx.gbl...
> Hi Everyone
> Is there are any APIs in Active Directory that provides functionalities to
> identify whether logged on user has administrator privileges or not, in
> Windows 2000 or Windows 2003.
>
> And the APIs to find out groups to which user belongs ,in windows 2000 or
> 2003
>
> thanks
> shridhar
>
>
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.active_directory (More info?)

You need to look at MSDN library.

The thing to keep in mind that being an adminitrator isn't an either or thing
for the whole network. It goes machine by machine. For instance being a domain
admin only means for sure that you have admin rights on the DCs of that domain.
Doesn't say anything for the other domains in the same forest in others or any
member machines.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Shridhar wrote:
> Hi Everyone
> Is there are any APIs in Active Directory that provides functionalities to
> identify whether logged on user has administrator privileges or not, in
> Windows 2000 or Windows 2003.
>
> And the APIs to find out groups to which user belongs ,in windows 2000 or
> 2003
>
> thanks
> shridhar
>
>