Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how do i list all computer name on my network

how do i list all computer name on my network

Scheduled Pinned Locked Moved Visual Basic
questionsysadmintutorialworkspace
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JustmeNick
    wrote on last edited by
    #1

    does anyone know how to list all the computers found on my network in a drop down list box? I am working on this project that i need the user to select a computer name from a list of computer found on the network so as to setup up the system.. how do i list all the computer on my network..

    Nab

    D 1 Reply Last reply
    0
    • J JustmeNick

      does anyone know how to list all the computers found on my network in a drop down list box? I am working on this project that i need the user to select a computer name from a list of computer found on the network so as to setup up the system.. how do i list all the computer on my network..

      Nab

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Well, it depends on how your network is setup. Unless you're using Active Directory or the old NT Domains, there is no central database that lists all the machines on the network. You'll have to ping each and every IP address in your net to see if there is a response. But, that does NOT mean it's a Windows machine. It can be something else, like a network Printer, some server, Linux box, ... Even a non-response doesn't mean that a machine is not there. It could just be turned off. Even using Active Directory or NT Domain, there's no guarantee that every machine on the network is a member of the domain.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      J 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Well, it depends on how your network is setup. Unless you're using Active Directory or the old NT Domains, there is no central database that lists all the machines on the network. You'll have to ping each and every IP address in your net to see if there is a response. But, that does NOT mean it's a Windows machine. It can be something else, like a network Printer, some server, Linux box, ... Even a non-response doesn't mean that a machine is not there. It could just be turned off. Even using Active Directory or NT Domain, there's no guarantee that every machine on the network is a member of the domain.

        Dave Kreskowiak Microsoft MVP - Visual Basic

        J Offline
        J Offline
        JustmeNick
        wrote on last edited by
        #3

        Yes i am using Active Directory and all the computers are on the same domain..so now how do i go about listing them from that database...

        Nab

        S 1 Reply Last reply
        0
        • J JustmeNick

          Yes i am using Active Directory and all the computers are on the same domain..so now how do i go about listing them from that database...

          Nab

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          JustmeNick wrote:

          so now how do i go about listing them from that database...

          Google ADSI Here is an MSDN Example showing how to do it using VB Script. Retrieving Computer Names from an Active Directory Container[^] Or a CP Article (in C#) Retreiving a list of network computer names[^] They at least point you in the right direction. Good luck :)


          I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups