Get Computer Listing

  • Thread starter Thread starter Sean Winfield
  • Start date Start date
S

Sean Winfield

I don't know if this is the correct forum, but I'm creating a remote
installation program using VB.NET 2005 and am looking for a really fast way
to scan the computers in my domain and create a listing them in a treeview.
Is there a way to grab the computer information in the domain and display it
quickly from a central workstation programmatically in VB.net?

Thanks
 
I don't know if this is the correct forum, but I'm creating a remote
installation program using VB.NET 2005 and am looking for a really fast way
to scan the computers in my domain and create a listing them in a treeview.
Is there a way to grab the computer information in the domain and displayit
quickly from a central workstation programmatically in VB.net?

Check out the NET VIEW command prompt command.

And then the Process class.
 
Will net view display only computers pingable and online or both offline and
online?
 
Do you want all computers that are currently online in the local domain, or
all computers registered with the domain (i.e. all computer accounts)
whether or not they're connected?

If it's the former, look into the various NetEnum API calls. You may be
able to do it using WMI rather than resorting to API, I'm not sure.

If it's the latter, you'll likely have to query the active directory, which
you can use various native .NET classes for.

HTH,
Alex
 
Thanks Alex, I'll look into it. Very helpful. I am somewhat familiar with
the .NET classes for AD, but I had not looked into the NetEnum API calls.
 
Back
Top