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. 2 4483
System.DirectoryServices provides a number of classes for managed access into
Active Directory. There are a few sample and quick starts @ MSDN as well.
"Nurchi BECHED" wrote: 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.
Hi Nurchi,
you can use System.DirectoryServices namespace for a interaction with the
both local and Domain objects.
A quick example on what you're looking for is available at http://msdn.microsoft.com/library/en...asp?frame=true
Cheers,
Branimir
--
Branimir Giurov
MCSD.NET, MCDBA www.sofiadev.org
"Nurchi BECHED" <nu****@telus.net> wrote in message
news:LSAUc.23817$X12.19390@edtnps84... 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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kunle Odutola |
last post by:
I have a database that tracks players for children's sports clubs. I have
included representative DDL for this database at the end of this post.
A single instance of this database supports...
|
by: Gary Besta |
last post by:
I am trying to add a simple case statement to a stored procedure or
user defined function. However when I try and save the
function/procedure I get 2 syntax errors. Running the query in query...
|
by: MLH |
last post by:
I was running the following code while logged
in as a user belonging only to the Users group.
Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a
control on the form
usrNew.PID =...
|
by: mrwoopey |
last post by:
Hi,
I am using the example "Authenticate against the Active Directory by
Using Forms Authentication and Visual Basic .NET":
http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340
...
|
by: pmud |
last post by:
Hi,
I have a drop down list bound to a database thorugh a data reader. It reads
the customer names from data reader.
Now, I want the user to be able to type more than one alphabet & the list...
|
by: Robin Munn |
last post by:
I'm developing a simple proof-of-concept Web application, more as a
personal programming exercise than anything else, that presents the user
with a login form where they can type in a database...
|
by: Joe |
last post by:
Hello All,
I am developing a webform which creates ArrayLists of people's names and
addresses (the values are retrieved from an xml file) and dynamically drops a
user control onto the webform...
|
by: abctech |
last post by:
Hi all,
I’m training in Servlets, JSP and JavaScript,.
Here is a snapshot of a portion of my web page, there’s a “StudentName” textbox and below it is a “Names” Dropdown list.
The...
|
by: Steven Simpson |
last post by:
Stefan Ram wrote (in "More than one language in a page"):
Is this a new trend of user-agent writers (Microformats, and now Google)
staking claims on the @class namespace? I'm surely not the only...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
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...
| |