473,473 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting list of user groups

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!
Mar 29 '06 #1
4 1992
try this example
http://msdn.microsoft.com/library/de...and_groups.asp

--
Regards

John Timney
Microsoft MVP

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
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!

Mar 29 '06 #2
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!!
"John Timney ( MVP )" wrote:
try this example
http://msdn.microsoft.com/library/de...and_groups.asp

--
Regards

John Timney
Microsoft MVP

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
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!


Mar 30 '06 #3
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

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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!!
"John Timney ( MVP )" wrote:
try this example
http://msdn.microsoft.com/library/de...and_groups.asp

--
Regards

John Timney
Microsoft MVP

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
> 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!


Mar 30 '06 #4
Thanks! I'll

"John Timney ( MVP )" wrote:
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

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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!!
"John Timney ( MVP )" wrote:
try this example
http://msdn.microsoft.com/library/de...and_groups.asp

--
Regards

John Timney
Microsoft MVP

"Cleyton" <Cl*****@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
> 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!


Mar 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
0
by: Bas | last post by:
I need to know if there is a way in Microsoft SQL Server 2000 to determine which Windows groups a user belongs to if logging into the database under Windows Authentication. I am making a tool to...
3
by: BobTheDatabaseBoy | last post by:
.... got: win2K, v8.1.6 login to win2K is to the network: user; bob13, domain; foo it's a win2K domain. i then login to my local db as db2admin. LIST APPLICATIONS fails with security error. ...
2
by: Joe | last post by:
Hi All, I am new to using the Access DB and I need some help if someone is able to give it to me. What I want to do is get the names of the columns of certain tables. Not the data in the table...
2
by: Brian Henry | last post by:
I am working on a internal intranet site, and i need to make a permissions page, all the account authorization is done through AD to let them see the intranet site.. now, the permissions page i...
4
by: Mark | last post by:
hey, i'm trying to get the current windows user and the groups they are in. Intergrated windows auth on and annoymous access turned off on IIS. However when trying to compile the following code...
10
by: Jeff Williams | last post by:
How can I get a list of the Groups both Local and Domain groups a User belongs to.
1
by: lawton | last post by:
Source: this is an access 2003 question My knowledge level: reading books, internet, and trial & error; no formal training I'm trying to get a running sum of what's filtered in a subform which is...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.