narmi2
asked on
Getting Computer Information
Hi
Continuing from https://www.experts-exchange.com/questions/21805843/Detect-PCs-On-Network.html
I can now get a list of all computer on the network, but how do I get more information by "probing" each computer as it was suggested in the list above?
Thanks
Continuing from https://www.experts-exchange.com/questions/21805843/Detect-PCs-On-Network.html
I can now get a list of all computer on the network, but how do I get more information by "probing" each computer as it was suggested in the list above?
Thanks
Did you see that last post, in that question, by graye?
Bob
Bob
ASKER
Yes, I have seen it but can't seem to get it to work?
What kind of problems are you having with SOSOS?
...just to make sure I didn't mess anything up (Hey, anything can happen), I went to my own web site, downloaded the source, unziped it, lauched Visual Studio, and compiled it. Everything works.
...just to make sure I didn't mess anything up (Hey, anything can happen), I went to my own web site, downloaded the source, unziped it, lauched Visual Studio, and compiled it. Everything works.
What version of .NET do you have?
Bob
Bob
ASKER
I have .NET 1.1 - VS.NET 2003.
The program compiles and everything! When I click the "Do it!" button if gives me information about my own computer.
When I click on Admin > Poll Remote PCs > Poll by Domain Name.
I type in the domain name and select "By WinNT Domain"
It says "Getting list of PCs..."
After a VERY long wait it says that it found 2 PCs when there are about 200 on the network? Also, it did not display the information it found about those 2 PCs?
I'm not too sure what the problem is.
Thanks
The program compiles and everything! When I click the "Do it!" button if gives me information about my own computer.
When I click on Admin > Poll Remote PCs > Poll by Domain Name.
I type in the domain name and select "By WinNT Domain"
It says "Getting list of PCs..."
After a VERY long wait it says that it found 2 PCs when there are about 200 on the network? Also, it did not display the information it found about those 2 PCs?
I'm not too sure what the problem is.
Thanks
Let's talk about those choices for polling...
Network Browse List - Useful when you're on a workgroup (rather than a domain) or when you really just want only those PCs that you can see in the "My Network Places" (without regard to the domain/workgroup).
WinNT Domain - Useful when you're using the old-style Win NT 4.0 domain. Also works with newer Win 2000 domains, but lacks a lot of additional functionality.
Active Directory Domain - Useful when you're using the an "Active Directory"-style domain on Win 2000/Win 2003. Allows for additional filtering by OU.
Let's also talk about what you'd expect to see...
Unlike polling a single PC, when polling a group a PCs, you won't get a window showing the results of the poll for each of those PCs. Instead the information is quietly placed into the database. Afterwards, you go look in the database to see what data has been collected.
Let's talk about configuration issues...
To remotely poll, you need appropriate permissions on each of the remote PCs. Typically that'd be easy if you ran the program as a member of the Domain Administrators group.
It could be that your network has been configured to not allow this kind of probing... For example, each PC might have a software-based firewall installed or the DCOM services stopped.
More info...
If the delay is in "Getting the list of PCs", then I'd suggest that you use one of the other polling techniques.
I'd also suggest that you turn on the "logging feature" to get a text-based log of what is going on. It will record the errors that flash on the screen for a new seconds.
Network Browse List - Useful when you're on a workgroup (rather than a domain) or when you really just want only those PCs that you can see in the "My Network Places" (without regard to the domain/workgroup).
WinNT Domain - Useful when you're using the old-style Win NT 4.0 domain. Also works with newer Win 2000 domains, but lacks a lot of additional functionality.
Active Directory Domain - Useful when you're using the an "Active Directory"-style domain on Win 2000/Win 2003. Allows for additional filtering by OU.
Let's also talk about what you'd expect to see...
Unlike polling a single PC, when polling a group a PCs, you won't get a window showing the results of the poll for each of those PCs. Instead the information is quietly placed into the database. Afterwards, you go look in the database to see what data has been collected.
Let's talk about configuration issues...
To remotely poll, you need appropriate permissions on each of the remote PCs. Typically that'd be easy if you ran the program as a member of the Domain Administrators group.
It could be that your network has been configured to not allow this kind of probing... For example, each PC might have a software-based firewall installed or the DCOM services stopped.
More info...
If the delay is in "Getting the list of PCs", then I'd suggest that you use one of the other polling techniques.
I'd also suggest that you turn on the "logging feature" to get a text-based log of what is going on. It will record the errors that flash on the screen for a new seconds.
By the way... I've got 75,000 PCs in my domain (no, I'm not kidding), and when I use the WinNT method or AD (without an OU filter), it takes about 2 minutes to build the list of PCs to poll.
However it takes about 15-20 seconds to run poll for each PC, so a reasonable number of PCs to pick when polling is in the 200-300 range. That takes about an hour and half to complete on my network.
However it takes about 15-20 seconds to run poll for each PC, so a reasonable number of PCs to pick when polling is in the 200-300 range. That takes about an hour and half to complete on my network.
ASKER
Thanks
For some reason when I run the program the "admin" menu is grayed out. If I run it from within vs.net I can select from the "admin" menu ???
Also
All the options except WinNT Domain say "bad domain" or something like that. When I select WinNT Domain it is able to COUNT the number of PCs but gives an error message when it gets to PC 7 ???
Any ideas?
For some reason when I run the program the "admin" menu is grayed out. If I run it from within vs.net I can select from the "admin" menu ???
Also
All the options except WinNT Domain say "bad domain" or something like that. When I select WinNT Domain it is able to COUNT the number of PCs but gives an error message when it gets to PC 7 ???
Any ideas?
The fact that you don't get the Admin menu is a good clue... that menu is only activated if you're a member of the Local Administrator's group.
That also probably explains why you can't get information from the remote PCs.
I suspect the problems you're having are all related to the fact that you don't have the proper credentials
That also probably explains why you can't get information from the remote PCs.
I suspect the problems you're having are all related to the fact that you don't have the proper credentials
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've just had it arranged and I am now a member of the Domain Admins group.
I tested it with the following code which returned "TRUE"
Dim objWindowsIdentity As WindowsIdentity
Dim objWindowsPrincipal As WindowsPrincipal
objWindowsIdentity = WindowsIdentity.GetCurrent ()
objWindowsPrincipal = New WindowsPrincipal(objWindow sIdentity)
Label1.Text = objWindowsPrincipal.IsInRo le("DOMAIN \Domain Admins").ToString
So if this is saying, yes I am a domain admin, why is the admin menu in sosos still grayed out?
Please help
I tested it with the following code which returned "TRUE"
Dim objWindowsIdentity As WindowsIdentity
Dim objWindowsPrincipal As WindowsPrincipal
objWindowsIdentity = WindowsIdentity.GetCurrent
objWindowsPrincipal = New WindowsPrincipal(objWindow
Label1.Text = objWindowsPrincipal.IsInRo
So if this is saying, yes I am a domain admin, why is the admin menu in sosos still grayed out?
Please help
I dunno...
Is the value of the DefaultDomain.Text in the configuration file set correctly?
Is the value of the DefaultDomain.Text in the configuration file set correctly?
ASKER
Ok, its fixed, I just had myself removed and domain admin then reinstated again and bingo!!!???
graye, I have some questions about sosos, is it ok if I email you or is it best if I post the questions in separate thread in experts-exchange?
Thanks
graye, I have some questions about sosos, is it ok if I email you or is it best if I post the questions in separate thread in experts-exchange?
Thanks
email is fine... ExpertSexChange wasn't really meant for "product support"
ASKER
Dim de As New System.DirectoryServices.D
Dim ds As New System.DirectoryServices.D
Dim r As System.DirectoryServices.S
ds.Filter = "(objectClass=computer)"
Try
For Each r In ds.FindAll
Dim s As String
Thanks
Console.WriteLine(r.GetDir
Next
Catch e As Exception
Console.WriteLine(e.ToStri
End Try