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

Samples from Users

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

Get Date User Account was Created

 Keywords:  Get Date User Account Created ADSI OLE COM WhenCreated

AddExtender("wwads44i.dll")
ServerDn=dsGetProperty("LDAP://rootDSE", "serverName")
ServerName=ItemExtract(1, ServerDn, ",")
ServerName=ItemExtract(2, ServerName, "=")
ServerDn=dsGetProperty("LDAP://rootDSE", "defaultNamingContext")
ServerPath="LDAP://%ServerName%/%ServerDN%"
list = dsFindPath (ServerPath, "(& (objectClass=User))")
UserPath = AskItemlist('User list', list, @TAB, @UNSORTED, @SINGLE )

objUser = ObjectGet(UserPath)
date = objUser.WhenCreated
Pause('Date Created', date)
Exit

Article ID:   W17546
Filename:   Get Date User Account was Created.txt
File Created: 2010:09:02:09:20:12
Last Updated: 2010:09:02:09:20:12