Get Computer Listing

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
 
J

Joe Cool

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.
 
S

Sean Winfield

Will net view display only computers pingable and online or both offline and
online?
 
A

Alex Clark

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
 
S

Sean Winfield

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top