.NET Programming
 

     
Function to Enumerate Computers on a Domain

Keywords: Enumerate domain computers, DirectoryServices, list computers on domain

 

 
 

claritin and pregnancy first trimester

claritin pregnancy category b asser.nl

lamictal and pregnancy tests

lamictal pregnancy

asthma rescue inhaler not helping

otc asthma inhaler canada

lexapro and weed trip

lexapro and weed interaction

naltrexone user reviews

naltrexone reviews jensen.azurewebsites.net

cialis cena v lekarne

lekarna koupit cialis

prednisolon bivirkninger hund

prednisolon 25 mg read

cialis generico 5 mg

cialis senza ricetta

cialis online

generico cialis costo redirect

cheap abortion pill

buy abortion pill

tadalafil mylan prezzo

acquistare cialis online forum

memantin 40

memantin aristo terapigenerisk.site memantin ulotka

        //Add Reference to DirectoryServices

        //using System.DirectoryServices;

 

        private void EnumerateComputers(string DomainName,string UserID,string Password)

        {

            DirectoryEntry ParentEntry = new DirectoryEntry();

            try

            {

                ParentEntry.Path = "WinNT://" + DomainName;

                ParentEntry.Username = DomainName + "\\" + UserID;

                ParentEntry.Password = Password;

                foreach (DirectoryEntry childEntry in     

                                            ParentEntry.Children)

                {

                    switch (childEntry.SchemaClassName)

                    {

                        case "Computer":

                            listBox1.Items.Add (childEntry.Name);

                            break;

 

                    }

                }

            }

            catch (Exception e1)

            {

                MessageBox.Show("Error While Reading Directories: " + e1.ToString());

            }

        }


 


 PTerryWave LLC      Return to Programming Listing
About