Skip to content

How do I read System Domain in C#?

Umair P

Asked Sep 11, 2008, 4:44 AM EDT2 answers
Share
LinkedInX
Hi there,
I am developing a desktop application that has a form that shows Domain on a System/ Network.The System.Environment.UserDomainName only tells the current user's domain. I want to see all the available domains and all the users under those doamain.
I want to know how can I read Domains in C#.
Regards,

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    You mean the application domains?? or something else??
    +1
  • +1
    The domain used to Login the system i.e. Domain\UserName
    +1