Is there any way in C# to receive computer properties using Active Directory ?

This is a discussion on Is there any way in C# to receive computer properties using Active Directory ? within the C# Programming forums, part of the General Programming Boards category; Dear Freinds, PLEASE TRY TO ASSIST !!! I am trying to receive a computer properties by using the active directory. ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    10

    Is there any way in C# to receive computer properties using Active Directory ?

    Dear Freinds,

    PLEASE TRY TO ASSIST !!!

    I am trying to receive a computer properties by using the active directory.
    The properties may be: Computer Name, DNS name, Description etc ..

    The follwoing code is used:

    Code:
    DirectorySearcher mySearcher = new DirectorySearcher(entry);
    SearchResult result = mySearcher.FindOne();
    
    foreach(SearchResult result in ySearcher.FindAll()) 
    { 
    strName = result.GetDirectoryEntry().Name;
    string allNames = this.GetProperties(result.GetDirectoryEntry());
    }
    However only the name of the computer is accessed.
    Apprecaite your assistance how can I receive the DNS, Description Etc. ...

    Is there any way in C# to receive computer properties using Active Directory ?

    THanks,
    moti
    Last edited by motiz; 04-29-2008 at 12:01 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tabbed Windows with MDI?
    By willc0de4food in forum Windows Programming
    Replies: 25
    Last Post: 05-19-2005, 10:58 PM
  2. Computer will not boot.
    By RealityFusion in forum Tech Board
    Replies: 25
    Last Post: 09-10-2004, 04:05 PM
  3. Regarding Undergraduate Computer Majors
    By UnregdRegd in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-04-2003, 11:55 AM
  4. This is my last night on this computer.
    By joshdick in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 07-12-2003, 01:33 AM
  5. Which distro should I run on my old computer?
    By joshdick in forum Tech Board
    Replies: 5
    Last Post: 04-09-2003, 01:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21