{"id":772,"date":"2018-02-27T06:42:23","date_gmt":"2018-02-27T04:42:23","guid":{"rendered":"http:\/\/itsimple.info\/?p=772"},"modified":"2018-02-27T06:42:23","modified_gmt":"2018-02-27T04:42:23","slug":"how-to-fix-active-directory-database","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=772","title":{"rendered":"How To fix Active Directory Database"},"content":{"rendered":"<p>Active directory database is located in the directory :<\/p>\n<pre>c:\\Windows\\NTDS\\ntds.dit<\/pre>\n<p>On Rare Situation this file can get damaged causing the hole active directory to malfunctioned including DNS and other services, Microsoft has some tolls to handle the situation and provide some tools to try and fix this database. To fix the ntds.dit database you first need to enter &#8220;Active directory Restore mode&#8221; by pressing F8 at boot :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-774\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/AD_restore_Mode-300x225.png\" alt=\"\" width=\"763\" height=\"572\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/AD_restore_Mode-300x225.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/AD_restore_Mode-131x98.png 131w, https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/AD_restore_Mode.png 600w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<p>Then open command prompt as Administrator, change to &#8216;c:\\windows\\ntds&#8217; directory and run the repair command :<\/p>\n<pre>cd c:\\windows\\ntds\r\nESENTUTL \/p NTDS.DIT<\/pre>\n<p>ESENTUTL detect the page size automatically, Only if you have been told to you can\u00a0 use :<\/p>\n<pre>ESENTUTL \/p NTDS.DIT \/8<\/pre>\n<p>This will try to fix the database<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-775\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl-300x270.png\" alt=\"\" width=\"736\" height=\"662\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl-300x270.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl.png 501w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>Then you can check the integrity of the database with the G switch :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-777\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl_G-300x130.jpg\" alt=\"\" width=\"722\" height=\"313\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl_G-300x130.jpg 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2018\/02\/activedirectory-esentutl_G.jpg 479w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>It will be good idea to delete\/move the logs from that directory after the fix and before the restart<\/p>\n<hr \/>\n<h3>Good Luck<\/h3>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Active directory database is located in the directory : c:\\Windows\\NTDS\\ntds.dit On Rare Situation this file can get damaged causing the hole active directory to malfunctioned including DNS and other services, Microsoft has some tolls to handle the situation and provide some tools to try and fix this database. To fix the ntds.dit database you first [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,12,14,15],"tags":[],"class_list":["post-772","post","type-post","status-publish","format-standard","hentry","category-operating-systems","category-tutorials","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=772"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/772\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}