How to Add MY Employee ID in Active directory?

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


4. Open CN=DisplaySpecifiers


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

Add MY Employee ID in Active directory

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.

Published by Aryan Nava

Founder of "BlockchainMind", CTO for two Blockchain startup during 2018, Cloud/DevOps Consultant and Blockchain Trainer

6 thoughts on “How to Add MY Employee ID in Active directory?

  1. 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
    set oUsr = Nothing

  2. 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.

  3. 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.

  4. 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.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: