DirectoryServices or not..

  • Thread starter Thread starter Tamir Khason
  • Start date Start date
T

Tamir Khason

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.
 
Tamir Khason said:
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.
 
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
 
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....
 
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.
 
Back
Top