General discussion

Locked

Service status info on DCs

By ambra ·
Is it possible to retrieve the list and status of a Domain Controller (of an AD domain) via an LDAP query rather than using the WinNT:\\ one
I already know how to do that with WinNT (there is a VB eample on ADSI programmer guide). Can I access tehcomputer class via LDAP and filtering by service?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Service status info on DCs

by ross.bale In reply to Service status info on DC ...

You need to access the machine by using the following example:

ObjOU=GetObject
"LDAP://ServerName.CompanyName.Com/OU=MyDept"
ObjOU.Filter = Array("Computer")
For each ObjComp in ObjOU
MSGBOX ObjComp.Name & vbcrlf & ObjComp.Site & vbcrlf & ObjComp.Operating System

This would retrieve information about computers in the MyDept OU and would filter based on the value of "Computer" (this will select all Computer Objects). The MSGBOX line will return the computer name, site and operating system of each PC within that OU. If you need any more info - let me know !

Back to Windows Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums