By the jpegPhoto field is created by default in the Active Directory Schema. To view the schema class or attribute definition you first have to install the Active Directory Schema snap-in.
To install the Active Directory Schema snap-in
1. Open a Command Prompt.
2. Type:
regsvr32 schmmgmt.dll
This command will register schmmgmt.dll on your computer.
3. Click Start, click Run, type mmc /a, and then click OK.
4. On the File menu, click Add/Remove Snap-in, and then click Add.
5. Under Snap-in, double-click Active Directory Schema, click Close, and then click OK.
6. To save this console, on the File menu, click Save.
7. In Save in, point to the systemroot/system32 directory.
8. In File name, type schmmgmt.msc, and then click Save.
9. To create a shortcut on your Start menu:
· Right-click Start, click Open all Users, double-click the Programs folder, and then double-click the Administrative Tools folder.
· On the File menu, point to New, and then click Shortcut.
· In the Create Shortcut Wizard, in Type the location of the item, type schmmgmt.msc, and then click Next.
· On the Select a Title for the Program page, in Type a name for this shortcut, type Active Directory Schema, and then click Finish.
Caution: Modifying the schema is an advanced operation best performed by experienced programmers and system administrators. For detailed information about modifying the schema, see the Active Directory Programmer's Guide at the Microsoft Web site. (http://msdn.microsoft.com/)
Notes:
- To perform this procedure on a domain controller, you must be a member of the Domain Admins group or the Enterprise Admins group in Active Directory, or you must have been delegated the appropriate authority. As a security best practice, consider using Run as to perform this procedure.
- To open the Active Directory Schema snap-in, click Start, click Control Panel, double-click Administrative Tools, and then double-click Active Directory Schema.
- You can also run the Active Directory Schema snap-in from a computer running Windows XP Professional. Simply install the Windows Server 2003 Administration Tools Pack on the computer, and then complete step 9 above. For more information about the Administration Tools Pack, see Related Topics.
- The Windows Server 2003 Administration Tools Pack cannot be installed on computers running Windows 2000 Professional or Windows 2000 Server.
View the Active Directory Schema in the Active Directory Schema snap-in
Select the Active Directory Schema snap-in from Start > All Programs > Administrative Tools > Active Directory Schema option.
In the Active Directory Schema snap-in select the Attributes folder under the Active Directory Schema and search for the jpegPhoto field.
For more information (e.g. Add, Modify, etc attributes) please refer to the Help of the Active Directory Users and Computers program in your Active Directory Server.
To replicate the jpegphoto attribute to the Global Catalog
1. Click Start, click Run, type schmmgmt.msc, and then click OK and open The Active Directory Schema snap-in.
2. In the console tree, click Attributes. Rright-click the attribute Jpegphoto and click Properties, and select the Replicate this attribute to the Global Catalog check box.