473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

DirectoryServices or not..

Question: I have to list all local users for computer with their images and
rights (groups, etc). How to perform it managed. Of couse I can implement
WinAPI and get it old way, but the question is is there a way to do it
managed?
Please assist. Thank you.

Nov 16 '05 #1
4 1017


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Question: I have to list all local users for computer with their images
and rights (groups, etc). How to perform it managed. Of couse I can
implement WinAPI and get it old way, but the question is is there a way to
do it managed?
Please assist. Thank you.


What do you mean with "How to perform it managed", perform what?
Anyway, you can manage user accounts using System.DirectoryServices, but if
you don't run in a AD domain environment there is little value on using it.
You don't have to manage a little more than a few local users I hope.

Willy.
Nov 16 '05 #2
Let's try to make it simple. How I can display all local users on the
computer names with picture and reference to group the user exist in from
inside listbox
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Question: I have to list all local users for computer with their images
and rights (groups, etc). How to perform it managed. Of couse I can
implement WinAPI and get it old way, but the question is is there a way
to do it managed?
Please assist. Thank you.


What do you mean with "How to perform it managed", perform what?
Anyway, you can manage user accounts using System.DirectoryServices, but
if you don't run in a AD domain environment there is little value on using
it. You don't have to manage a little more than a few local users I hope.

Willy.

Nov 16 '05 #3
There are a number of ways to do this. I don't mean to beat around the bush
but if you look up System.DirectoryServices. Its the name space that handles
all of this. Microsoft even gives really good examples how to use the API. I
hope this helps....

"Tamir Khason" wrote:
Let's try to make it simple. How I can display all local users on the
computer names with picture and reference to group the user exist in from
inside listbox
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Question: I have to list all local users for computer with their images
and rights (groups, etc). How to perform it managed. Of couse I can
implement WinAPI and get it old way, but the question is is there a way
to do it managed?
Please assist. Thank you.


What do you mean with "How to perform it managed", perform what?
Anyway, you can manage user accounts using System.DirectoryServices, but
if you don't run in a AD domain environment there is little value on using
it. You don't have to manage a little more than a few local users I hope.

Willy.


Nov 16 '05 #4
You can't store pictures in the local security database , this is where the
local account data is stored on a local machine (part of the registry).
You could use DirectoryServices to retrieve user and group data and link the
account info to the file system where you store the pictures (you could use
tha account name as file name).

Willy.

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:eL****************@TK2MSFTNGP15.phx.gbl...
Let's try to make it simple. How I can display all local users on the
computer names with picture and reference to group the user exist in from
inside listbox
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...


"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Question: I have to list all local users for computer with their images
and rights (groups, etc). How to perform it managed. Of couse I can
implement WinAPI and get it old way, but the question is is there a way
to do it managed?
Please assist. Thank you.


What do you mean with "How to perform it managed", perform what?
Anyway, you can manage user accounts using System.DirectoryServices, but
if you don't run in a AD domain environment there is little value on
using it. You don't have to manage a little more than a few local users I
hope.

Willy.


Nov 16 '05 #5

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

Similar topics

12
by: hykim | last post by:
Hello, everyone. according to MSDN, there is any constructor of System.DirectoryServices.SearchResultCollection Class. if I implement DirectorySearcher.FindAll() method by myself, then how can I...
1
by: Jason Gleason | last post by:
I am using the following method in a web service that utilizes the system.directoryservices namespace: public ArrayList GetAllAppPools(){ System.DirectoryServices.DirectoryEntry apppools = new...
5
by: Keith Jakobs, MCP | last post by:
Hi All.... I'm having a HECK of a time connecting to Active Directory using VB in Visual Studio.NET 2003. Can anyone PLEASE help me? All I am trying to do is list the current members of our...
7
by: turbon | last post by:
Hello, I am writing code, which will copy webServices from one IIS 6.0 webserver to another and using DirentoryServices to achieve this purpose. And I have problems with authentication - I get an...
7
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using this code to get groups for a user and getting a error (5) on the GetAuthorizationGroups() function . There are two domains. This function works on the local domain but does not work...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.