list the user account in my computer

Posted by Tobi under C# on 6/11/2013 | Points: 10 | Views : 1042 | Status : [Member] | Replies : 5
hi everybody,
i want to list all the users account in my computer .
so if someone could help me i would be gratefull
thanks




Responses

Posted by: Bageshkumarbagi on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Refer this link.
http://answers.yahoo.com/question/index?qid=20100705081103AAE6FJA


Thanks,
Bagesh Kumar Singh

Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Tobi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tobi on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for your fast answear
i m going to check this right now
thanks

Tobi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tobi on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
i didn't explain my problem
i m writting a windows service using c#
i want to list the users account in my machine to :
-list all the users
-to check if the administrator doesn't exist because i dont want to have this profile in my computer
thanks
i really appreciate your help.

Tobi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Cherishma on: 6/13/2013 [Member] Starter | Points: 25

Up
0
Down
1.From the Windows Desktop right-click on My Computer.
2.Click Manage, which should open the Computer Management Window as shown below.


3.Click the + next to Local Users and Groups or double-click it. Note: If you cannot access this section it's likely you do not have administrator rights to the computer.
4.Click Users and in the right pane you should see all user accounts setup on your computer.

Each of the names you see in the right pane are accounts setup on your computer. If these accounts have a red x in the right corner of them it indicates the account exists on the computer but it has been disabled.


Tobi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tobi on: 6/25/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for your answear but it s not what i want to do
i want my windows service to check this using some code not using my mouse and the windows menu.
i want my service to ask the registry

Tobi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response