The employee ID and employee number fields are already in Active Directory (AD). However, you need to tie them to a particular class. First, you must install the Windows 2000 Support Tools from the Win2K CD-ROM (Support/Tools), then perform the following steps:
,&Employee ID, eid.vbsthen click Add, and type the following:
,&Employee Number, enum.vbs
--------
eid.vbs
--------
Dim oVar
Dim oUsr
Dim tmp
Set oVar = Wscript.Arguments
Set oUsr = GetObject(oVar(0))
tmp = InputBox("The Employee ID of the user is: " & oUsr.employeeID &
vbCRLF & vbCRLF & "If you would like enter a new number or modify the
existing number, enter the new number in the textbox below")
if tmp <> "" then oUsr.Put "employeeID",tmp
oUsr.SetInfo
Set oUsr = Nothing
WScript.Quit
---------
enum.vbs
---------
Dim oVar
Dim oUsr
Dim tmp
Set oVar = Wscript.Arguments
Set oUsr = GetObject(oVar(0))
tmp = InputBox("The Employee Number for this user is: " &
oUsr.EmployeeNumber & vbCRLF & vbCRLF & "If you would like enter a new
number or modify the existing number, enter the new number in the
textbox below")
if tmp <> "" then oUsr.Put "employeeNumber",tmp
oUsr.SetInfo
Set oUsr = Nothing
WScript.Quit