Flappy Shoot

Sunday, April 19, 2009

How can I add employee IDs to Active Directory?

How can I add employee IDs to Active Directory?
The employee id field is already available in AD, but we need to edit the schema to associate with User Object.

Register Schmmgmt.dll
1. Click Start, and then click Run.
2. Type regsvr32 schmmgmt.dll in the Open box, and then click OK.
3. Click OK when you receive the message that the operation succeeded.

Open Schema Management Console and adding employeeID attribute
1. Click Start, click Run, type mmc in the Open box, and then click OK.
2. On the File, menu click Add/Remove Snap-in.
3. Click Add.
4. Click Active Directory Schema, click Add, click Close, and then click OK.
5. Navigate to Classes, and to Person.
6. Right click Person and select Properties.
7. Select Attributes, click Add and click employeeID. Click OK.

Adding or editing values to Employee ID.
Though I have come across multiple scripts or third party tools to change the Schema Display context, I feel the easiest way to handle any custom attribute in AD is to use Sysinternals AD Explorer. All you need to do is run AD Explorer and connect to a DC. You can explorer as well as change the AD attributes. It’s a combination of ADSIEDIT and ADUC!!

Download link for AD Explorer: http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx