How to Add MY Employee ID in Active directory?

June 30, 2011 — 6 Comments

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

adding-employee-id-in-active-directory-step-1

2.  Right click on ADSI Edit and Connect To

adding-employee-id-in-active-directory-step-2

3. Once you in the connection settings, select configuration from the drop down list where it says Select a well known naming context

adding-employee-id-in-active-directory-step-3

4. Open CN=DisplaySpecifiers

adding-employee-id-in-active-directory-step-4

5. Open CN=409, CN=DisplaySpecifiers, CN=Configuration

adding-employee-id-in-active-directory-step-5

 

6. Look for CN=User-Display and double click on this

adding-employee-id-in-active-directory-step-6

7.  Click on AdminContextMenu and Edit.

adding-employee-id-in-active-directory-step-7

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

adding-employee-id-in-active-directory-step-8-1

adding-employee-id-in-active-directory-step-8

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

adding-employee-id-in-active-directory-step-9

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.

6 responses to 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
    oUsr.setinfo
    set oUsr = Nothing
    wscript.quit

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

  3. 

    what would the vbs script look like if wanting to do this for Employee Number?

    Thanks

  4. 

    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.

  5. 

    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

Trackbacks and Pingbacks:

  1. Adding Custom Attributes to Active Directory user profile | Virtualize SharePoint and SharePoint Virtualization - July 4, 2011

    […] How to add Employee Number to Active Directory Users properties?  Please see my previous post about how you can add Employee ID filed for user profile. […]

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s