Home > Articles > Operating Systems, Server > Microsoft Servers

  • Print
  • + Share This
Like this article? We recommend

After you've placed the ssn.vbs, employee-number.vbs, and employee-ID.vbs files on the C: drive of your test domain controller, you should be able to store values for the new attributes:

  1. Open Active Directory Users and Computers. Locate a user account and right-click. The new attributes (SSN, Employee-Number, and Employee-ID) should appear on the context menu for the user, as shown in Figure 9.

  2. Figure 9Figure 9 New attributes in the context menu.




  3. Click Employee-ID. When the text box opens, enter a bogus Employee-ID number, such as 007, and click OK.

  4. Open the Employee-ID text box again. The number you just added is stored near the top, as shown in Figure 10. The dialog box allows you to add a new number or modify the existing one. If you ever want to clear the number, just enter a space in the text box and click OK.

  5. Figure 10Figure 10 The Employee-ID text box.




Test all the new attributes you just added. Although these new attributes are not displayed in the user Properties dialog box, you can still treat them just like any other attribute. For example, you can perform Active Directory searches to locate users matching the stored values. You can also update these new attributes using scripts.

NOTE

The Microsoft web site provides more details about adding classes and attributes to the Active Directory schema. I found the article "Step-by-Step Guide to Using Active Directory Schema and Display Specifiers" article to be quite useful; the article was written for Windows 2000 and contains several scripted solutions. However, you should be able to craft your own solution using that article and the information you learned here.

  • + Share This
  • 🔖 Save To Your Account