Madman2501
asked on
Need to update AD with PAyroll and Date of Birth.
I require the ability to update two custom attributes in AD, i would like to if possibile get the user to enter this information at logon and then this updates there AD user account.
Does anyone have an idea on how i could do this. I have used scriptomatic but my VB skills are poor
if you require more information please ask
thanks
Does anyone have an idea on how i could do this. I have used scriptomatic but my VB skills are poor
if you require more information please ask
thanks
ASKER
i was really looking at scripting the procedure, i know how to do it manually. did i forget to change the level of user button again.
On my system users have the permission to "write personal information" - I assume this is default. I would think you could use something to the effect of:
Set objMyUser = GetObject("LDAP://CN=John Doe,DC=domain,DC=com", "user")
objMyUser.Set "telephoneNumber", "123-45607890"
objMyUser.SetInfo
See http://www.microsoft.com/technet/scriptcenter/topics/security/propset.mspx for more accurate info.
Set objMyUser = GetObject("LDAP://CN=John Doe,DC=domain,DC=com", "user")
objMyUser.Set "telephoneNumber", "123-45607890"
objMyUser.SetInfo
See http://www.microsoft.com/technet/scriptcenter/topics/security/propset.mspx for more accurate info.
ASKER
Sorry when i said scripting the procedure i meant as part of the user logon, not me creating a script and running it. the information the users have to input are payrolll and date of birth. i dont have that information so i want the users to be able to do this at logon?
does that help explain it? or am i not getting it :)
does that help explain it? or am i not getting it :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Put an "Exit For" statement right after the "obj.SetInfo" line, no need to continue looping through the list of users after you've already found the one you want.
ASKER
Thanks very useful
Start>Admisitrator Tools>Active Directory Users & Computers and modify the information for each account as needed.
Or from a command prompt type dsa.msc
Note you will need to have the admin tools installed. If it on the Server 2003 CD.
I would stay away from using vbscript to do this.