Richard
Mon Oct 16 11:51:14 CDT 2006
WMI can be used to connect to individual computers and retrieve information.
It cannot be used to discover what computers are out there. As noted, you
can use ADO to retrieve all computer objects in AD. If you want to generate
a list of all computers, then connect to each with WMI to retrieve
information, I have a sample VBScript linked here that does that:
http://www.rlmueller.net/Inventory.htm
As written, the script is limited to about 250 computers, because Excel can
only handle 255 columns. I have another version that reverses rows and
columns that can document many more. Reply if you are interested.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab -
http://www.rlmueller.net