Getting list of user groups

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

I need to get the user groups in a machine, because i need to verify
dynamically what's the name of the group "Everyone" in different windows. For
example, in windows in portuguese the name of the user group "Everyone" is
"Todos", so i need to know what's the name of this user group.


Someone have an example of how can I do this??

I'm looking at a System.DirectoryServices namespace, but i didn't get
anything.

Thanks!
 
Hi!

Thanks for your answer... But I didn´t get to make it work..

I think that the problem is in:

strPath = "LDAP://localhost:389/OU=TestOU,O=Fabrikam,C=US";
objADAM = new DirectoryEntry(strPath);

I changed the string strPath to:
strPath = "WinNT://" + Environment.MachineName + ",computer";
..... but didn't works. And I try with LDAP too...but didn't works.

I get the message:The provider does not support searching and cannot search
WinNT:MyPC,computer.

I'm using a win app and i'm in a Workgroup. What's happening??!

Thanks!!
 
It might just be a permissions problem, why dont you post the question in
the microsoft.public.general.adsi group and see if someone can help. There
are MVP's there who are a lot more specialised in AD stuff than I am.
 
Thanks! I'll

John Timney ( MVP ) said:
It might just be a permissions problem, why dont you post the question in
the microsoft.public.general.adsi group and see if someone can help. There
are MVP's there who are a lot more specialised in AD stuff than I am.
--
Regards

John Timney
Microsoft MVP
 
Back
Top