Windows 7: How can I get a list of all Windows usernames in .Net?

Is there an easy way to get the names of all the usernames of a local Windows 7 machine using .Net? So if I had a machine named MyPC and she had 3 users MyPC \ Mike, MyPC \ Bob and MyPC \ Steve, I would just like to receive a request to get Mike, Bob and Steve. Of course, I don't care if they have a computer name or not.

+3
source share
2 answers

, \Users . ( , )

+2

Source: https://habr.com/ru/post/1733583/


All Articles