Event Information | According to Microsoft : Cause : This event is logged when the AD_TERM failed to create an index for the attribute. Resolution : Compact and restore the database, and undo the index change A schema cache update occurs automatically after this situation is detected. Check Event Viewer five minutes after this Event ID 1136 is posted, and see if the event recurred. If the event did not recur, the issue is resolved. If the event did recur, restart the computer. When the computer restarts, check Event Viewer to see if the Event ID 1136 recurred. If the event recurred, there are several additional procedures that you can use to attempt to resolve this issue. After each procedure, check Event Viewer to see if this event continues to be reported. If the event continues to be reported, try the next procedure.- Compact the Active Directory database
- Restore the Active Directory database from backup media
- Undo the index change for the attribute
Perform these procedures on the computer that is logging the event to be resolved. To compact the Active Directory database or to restore it from backup, you need the Directory Services Restore Mode password. If you do not know the Directory Services Restore Mode password, you can reset it by using the Ntdsutil tool. To perform these procedures, you must have membership in Domain Admins, or you must have been delegated the appropriate authority. Compact the Active Directory database To compact the Active Directory database: Note : To compact the Active Directory database, you must have enough free disk space to approximately double the size of the existing database. If you do not have that much room on the existing partition on which Active Directory Domain Services (AD DS) is stored, compact the database to another volume where enough space is available. Before stopping the NTDS service, consider temporarily disabling the password protected screen saver, if it is enabled. If the password protected screen saver starts while the NTDS service is stopped, you will have to restart the computer to log in. To check the integrity of the database:- Open a command prompt as an administrator. To open a command prompt as an administrator, click Start. In Start Search, type Command Prompt. At the top of the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
- At the command prompt, type net stop ntds, and then press ENTER.
- At the command prompt, type ntdsutil, and then press ENTER.
- At the command prompt, type Activate Instance NTDS, and then press ENTER.
- At the command prompt, type files, and then press ENTER.
- At the command prompt, type compact to folderLocation, and then press ENTER. Substitute a folder location to which you want to create the compacted database for fileLocation.
- When the compaction is complete, the command output provides directions for copying the compacted database over the existing database. Type quit, and then press ENTER twice to exit Ntdsutil.
- If you have enough disk space, you can save a copy of the existing database (Ntds.dit).If there is not enough space on a single volume to hold two copies of the database, type a path to a volume or shared network resource that has enough space.
- Next, move the compacted database to the location of the previous database.
- Delete the log files, as indicated after the compaction routine completes.
- At the command prompt, type net start ntds, and then press ENTER.Now enable the password protected screen saver, if disabled it earlier.
Restore the Active Directory database from backup media To restore the Active Directory database from backup media,need the Directory Services Restore Mode password.If do not know the Directory Services Restore Mode password,can reset it by using the Ntdsutil tool- At a command prompt that you opened as administrator, type bcdedit /set safeboot dsrepair, and then press ENTER.
- Restart the domain controller.
- At the Windows logon screen, click Switch User.
- Click Other User.
- Type .\administrator as the user name, type the Directory Services Restore Mode password for the server and then press ENTER.
- Click Start. In Start Search, type cmd, and then press ENTER.
- At the command prompt, type wbadmin get versions -backuptarget:targetDrive:, and then press ENTER. Substitute the location of the backup that you want to restore for targetDrive.
- Identify the version of the backup that you want to restore.Must enter this version exactly in the next step.
- Type wbadmin start systemstaterecovery -version:dateTime -backuptarget:targetDrive:-quiet, and then press ENTER. Substitute the version of the backup that you want to restore for dateTime and the volume that contains the backup for targetDrive.
- Open a command prompt, type bcdedit /deletevalue safeboot, and then press ENTER.
- After the recovery operation completes restart the domain controller.
Note : There is no need to attempt an authoritative restore because the schema cannot be restored by using an authoritative restore. Undo the index change for the attribute To undo the index change for the attribute:- Open ADSI Edit. To open ADSI Edit, click Start. In Start Search, type ADSIEdit.msc, and then press ENTER. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
- Right-click ADSI Edit, and then click Connect to.
- In Select a well known Naming Context, click Schema. The default action of the tool is to connect to the local domain. If you want to connect to another domain or server, you can do that under Computer in the Connection Settings dialog box.
- Click OK.
- In the console tree, expand Schema.
- Click the object name CN=Schema.
- In the middle pane, a list of attribute names, classes, and distinguished names appears. Locate the attribute that is referred to in Event Viewer, and double-click it.
- In the list of attributes that appears in the attribute's properties, click the searchFlags attribute, and then click Edit.
- Set the value to 0 unless you can identify a more appropriate attribute identifier for the configuration.
- In the Attribute Editor and the attribute's properties, click OK.
- Close ADSI Edit.
- Restart the computer.
|