Select the product you need help with
HOW TO: Use Ntdsutil to Manage Active Directory Files from the Command Line in Windows 2000Article ID: 315131 - View products that this article applies to. This article was previously published under Q315131 On This PageSUMMARY
This step-by-step article describes how to manage Active Directory files from the command line and describes the main directory file. Microsoft Windows 2000 Directory Service is implemented on top of an indexed sequential access method (ISAM) table manager. This table is the same table manager that is used by Microsoft Exchange Server, the file replication service, the security configuration editor, the certificate server, Windows Internet Name Service (WINS), and other Windows 2000 components. The version of the database that Windows 2000 uses is called extensible storage engine (ESENT). ESENT is a transacted database system that uses log files to support rollback semantics to ensure that transactions are committed to the database. Ideally, you should locate data and log files on separate drives to improve performance and to support recovery of the data if a disk fails. The data file is called Ntds.dit. You can use the commands on the Files menu in Ntdsutil to manage the Directory Service data and log files. ESENT provides its own tool called Esentutl.exe that you can use for certain database file management functions. Esentutl.exe is installed in the Winnt\System32 folder. Several of the Ntdsutil file management commands initiate Esentutl, which reduces the need to learn that tool's command-line arguments. If Ntdsutil initiates Esentutl, Esentutl generates a separate window that is configured with a large history so that you can scroll back to see all of the Esentutl progress indicators. Windows 2000 Directory Service opens its files in exclusive mode. This means the files cannot be managed while the server is operating as a domain controller. How to Start Your Computer Into Directory Services Restore Mode
How to Start NtdsutilNtdsutil.exe is located in the Support Tools folder on the Windows 2000 CD-ROM. By default, this tool is installed in the System32 folder.
How to Move the DatabaseYou can move the Ntds.dit data file to the new folder that is specified by the location variable. If you do so, the registry is updated so that Directory Service uses the new location when you restart the server.
How to Move Log FilesYou can move the Ntds.dit data file to the new folder that is specified by the location variable. If you do so, the registry is updated so that Directory Service uses the new location when you restart the server.
How to Recover the DatabaseYou can use Esentutl.exe to perform a soft recovery of the database. Soft recovery scans the log files and ensures that all committed transactions that exist in the log file are also reflected in the data file. The Windows 2000 Backup program truncates the log files appropriately.Logs are used to ensure that committed transactions are not lost if your computer fails or if it experiences unexpected power loss. Transaction data is written first to a log file, and then it is written to the data file. After you restart the computer after failure, you can rerun the log to reproduce the transactions that were committed but that were not recorded to the data file.
How to Repair the DatabaseWARNING: After you complete the procedure that is described in this section, Esentutl.exe performs a low-level repair of the data file. Use the repair command only on the advice of qualified service personnel, because this command can cause data loss. You can use this procedure to repair only the data that ESENT knows about. As a result, the repair operation may eliminate data that is key to the safe operation of Directory Service.
How to Set PathsYou can use the set path command to set the path for the following items:
REFERENCESFor additional information about how to perform a Semantic database analysis, click the article number below
to view the article in the Microsoft Knowledge Base:
315136 For additional information about how to automate Ntdsutil.exe, click the article number below
to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/315136/EN-US/
)
HOW TO: Complete a Semantic Database Analysis for the Active Directory Database by Using Ntdsutil.exe
243267
(http://support.microsoft.com/kb/243267/EN-US/
)
How to Automate Ntdsutil.exe Using a Script
PropertiesArticle ID: 315131 - Last Review: October 30, 2006 - Revision: 2.1
| Article Translations
|


Back to the top








