Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: User Exist Account Check
AddExtender("WWADS44I.DLL") ; ; samAccountName of user of interest ; MyUser = "deanad" ;!!!! MODIFY TO FIT YOUR NEEDS ServerDn=dsGetProperty("LDAP://rootDSE", "serverName") ServerName=ItemExtract(1, ServerDn, ",") ServerName=ItemExtract(2, ServerName, "=") ServerDn=dsGetProperty("LDAP://rootDSE", "defaultNamingContext") ServerPath="LDAP://%ServerName%/%ServerDN%" UserPath=dsFindPath(ServerPath, "(&(objectCategory=person)(sAMAccountName=%MyUser%))") ; ; Check if user exists ; If dsIsObject(UserPath ) Message(UserPath, "User Exists.") Else Message(UserPath, "User Does NOT exist.") EndIf
Article ID: W17363
File Created: 2008:04:10:15:08:24
Last Updated: 2008:04:10:15:08:24