Get user names

N

Nurchi BECHED

Hello, my dearest respected brother, All!

I had this question:
How can i obtain list of users registered in the system
and current username and usergroup?

I'm running Windows XP Pro and have the following users registered in the
system:
Gus: Administrators
Nurchi: Administrators
Patimat: Users
(Administrator: Administrators)
And bunch of others created by IIS of MsVS .NET setup...

I'm trying to create a Windows Service that would block internet access to
certain users or groups by schedule, but that would be next part of the
problem.

Right now, my question is:
Does C# (actually .NET Framework) have built in
functions to get list of users and groups and current user
or would I have to [DllImport("something.dll")] to do that?

With best regards, Nurchi BECHED.
 
G

Guest

System.DirectoryServices provides a number of classes for managed access into
Active Directory. There are a few sample and quick starts @ MSDN as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top