Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
; Construct the full server ADSI path using serverless binding sServerDn = dsGetProperty("LDAP://rootDSE", "serverName") sServerName = ItemExtract(1, sServerDn, ",") sServerName = ItemExtract(2, sServerName, "=") sServerDn = dsGetProperty("LDAP://rootDSE", "defaultNamingContext") sServerPath = "LDAP://%sServerName%/%sServerDN%" ; User's old style SAM account name. sSamName = "rtest" ; As an example. ; Search for the user on the domain. sUserPath = dsFindPath(sServerPath, "(&(objectCategory=person)(sAMAccountName=%sSamName%))") sExchServer = dsGetProperty(sUserPath, "msExchHomeServerName" )
Article ID: W16803
File Created: 2007:07:03:14:26:20
Last Updated: 2007:07:03:14:26:20