How to find file servers and exchange servers in AD ?


hi

          want find file servers and  exchange servers in ad , have no idea.

          can advise plz ?

you can use ldap filters utilities adfind , dsquery. ldap filters are:

to find exchange servers in configuration container: (objectcategory=msexchexchangeserver)

to find servers: (&(objectcategory=computer)(operatingsystem=*server*))

to find dc's: (primarygroupid=516)

an example dsquery (searching configuration container):

dsquery * "cn=configuration,dc=mydomain,dc=com" -filter "(objectcategory=msexchexchangeserver)"

or, find servers (computers server operating system, whether dc's or member servers):

dsquery * -filter "(&(objectcategory=computer)(operatingsystem=*server*))"

many more examples , documentation here:

http://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx


richard mueller - mvp directory services



Windows Server  >  Directory Services



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file