WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Find Exchange Servers

Question:

I have a script that will find specific server types on the network, like sql, pdc, bdc and the likes. is there a way to find an exchange server a la winnt [wntServerList] or asdi extenders?

Answer:

Using the ADSI extender:
AddExtender("wwads34i.dll")
sContext = dsGetProperty("LDAP://RootDSE", "configurationNamingContext")
sContext = "LDAP://%sContext%"
sFilter = "(objectCategory=msExchExchangeServer)"

lPathList = dsFindPath(sContext, sFilter)

Message("Exchange Servers:", lPathList)


Article ID:   W15811
File Created: 2004:03:30:15:40:58
Last Updated: 2004:03:30:15:40:58