Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Basically, I'm trying to identify the OU incase a user has an issue, I could easily id the OU in which I would know what policies are set.
Sorry, like a few others on the board, I don't have a clear understanding of the ADSI or LDAP stuff
Any help would be appreciated
; Path to domain server or domain dn sPath = "LDAP://shamrock" ; Search filter to find user account 'Slash' sFilter = "(&(objectCategory=person)(samAccountName=Slash))" ; Do the search. lResults = dsFindPath(sPath , sFilter) ; Get the OU path (assumes only one user found.) sOuPath = dsGetPrntPath(lResults) ; Display results. Message("User's OU", sOuPath)
Article ID: W16322
File Created: 2005:02:18:12:19:48
Last Updated: 2005:02:18:12:19:48