Adding employee ID filed to Active Directory users in Windows 2008 Server. In this blog you can view step by step instruction about how you can go head
and add Employee ID filed in Active directory using VBScript.
1. Login to your domain controller and open ADSI Edit
2. Right click on ADSI Edit and Connect To
3. Once you in the connection settings, select configuration from the drop down list where it says Select a well known naming context
5. Open CN=409, CN=DisplaySpecifiers, CN=Configuration
6. Look for CN=User-Display and double click on this
7. Click on AdminContextMenu and Edit.
If you don’t see the edit button, your account is not having enough rights.
Make sure your member of Enterprise Admins
8. Add to the attribute the value "2, Employee &ID, c:\scripts\employeeid.vbs" (without quotes).
Do not remove the existing values, and if number 2 is already in use, select a free number.
I am using a VBScript and I saved the script in following location c:\scripts\employeeid.vbs
Copy script from: Adding Employee ID in Active Directory Script and past it in NotePad and save as EmployeeID.Vbs
Click OK and OK for the next Windows.
9. Open your Active Directory Users and Computers and right click on any account. You will see Employee ID
Using VBScript and ADSI Edit, You can enable Employee ID Filed in Active Directory. In my next blog, I will show you how you can Attribute Editor tab to enable Employee ID Filed in Active Directory.
Error: input box hidden; i use this code
dim oVar, oUsr, tmp, title, text1
set oVar = wscript.arguments
set oUsr = getobject(oVar(0))
title = “Enter Employee ID”
text1 = “Current Employee ID #: ” & oUsr.employeeID & vbcrlf & vbcrlf & “Enter new or change existing ID in the box below”
tmp = inputbox(text1,title)
if tmp “” then oUsr.put “employeeID”,tmp
oUsr.setinfo
set oUsr = Nothing
wscript.quit
very good articles and very verbose.
I do the same follow your instruction,but the Employee id context menu not list.
I am the windows server 2008 platform and paste the same vb script form your blogs.
thanks.
what would the vbs script look like if wanting to do this for Employee Number?
Thanks
can you help me to add the join date for all my users in active directory. my question is, can i add join date using bulkuser add like power shell scripting. please help.
I’ve developed a custom property pages that let System Administrator have a quick access to thumbnail Photo, employee ID and employee Number for a user object.
It’s an extension of Active Directory Users and Computers MMC snap-in.
http://goo.gl/MXWwcG