Solved

Domain Controller name!

Posted on 2004-10-21
501 Views
Last Modified: 2008-03-04
Does anyone know how to find the name of the Domain Controller that my system uses to log me in? I want a programatic way to find this info.
Pl help!!
0
Question by:kunjachan_
    2 Comments
     
    LVL 20

    Accepted Solution

    by:
    Try this,

    String logonName = WindowsIdentity.GetCurrent().Name;
    String domainName = logonName.Substring( 0, logonName.IndexOf(@"\") );
    0
     
    LVL 18

    Assisted Solution

    by:armoghan
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Live - One-on-One C# Help from Top Experts

    Solve your toughest problems, fast.
    C# experts are online now and ready to help you.

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    931 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now