How To Get Computer Information Using ADSI
This article was previously published under Q197947 On This PageSUMMARY
You can use the Active Directory Service Interfaces (ADSI) to obtain
network computer information from within Visual FoxPro. This article shows
an example of how to obtain this information.
MORE INFORMATIONNOTE: To use the following example, you must install the Active Directory Service Interfaces from the following Web site or the Microsoft Developer Network CD:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/default.mspx (http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/default.mspx)
ADSI is a COM-based interface for accessing directory services. You can
treat each element of the network, such as users, printers, and computers,
as an object. Accessing the properties of the computer object allows the
developer to get information about the computer. The following code
demonstrates how to do this. Save the following code to a program file and
run the program.
Sample CodeREFERENCES
Visual Studio Microsoft Developer Network Library, version 6.0; search on:
"ADSI Computer Object"
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites: http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/) http://support.microsoft.com/iep (http://support.microsoft.com/iep) APPLIES TO
| Article Translations
|

Back to the top
