How to Active Directory offline maintenance,(offline defrag) Active directory, Live Demo

Published: 29 August 2018
on channel: MASTER OF ACTIVE DIRECTORY
1,190
10

Offline Defragmentation of Ntds.dit
The purpose for offline defragmentation of the NTDS.dit file is to regain the white-space inside the DIT file and to reduce DIT bloat.

---------------------------------------
Please Subscribe and like video | Press bell icon to get notification of latest updates.

About : MASTER OF ACTIVE DIRECTORY is an Education YouTube Channel, where you can find technical and learning videos on Active directory, Windows and windows tips and trick for basic and advance levels, New Video is Posted after two days :)
---------------

STEPS :-

1. Open a Command Prompt as administrator:On the Start menu, right-click Command Prompt, click Run as administrator. If the User Account Control dialog box appears, provide credentials, if required, and then click Continue.

2. Go to E:\ drive and create folder named “Wutemp” if it does not already exist. You can also type in this command at the command prompt or use the Windows explorer to check the existence of the folder.
If not exist E:\wutemp MD E:\wutemp

3. At the command prompt, type:
net stop ntds
Type Y to agree to stop additional services, ENTER
This will stop the following 4 services: DNS, FRS, KDC, Netlogon

4. At the command prompt, type:
ntdsutil "activate instance ntds" "files" "integrity" q (ENTER )

5. At the ntdsutil prompt, type:
semantic database analysis (ENTER )

6. At the semantic checker prompt type:
“go” (ENTER)

7. If the output results indicate any errors (i.e. Missing subrefs detected / Inconsistent refcounts detected), run the fixup command before moving to the compact operation by typing:
Semantic checker: go fixup

Make sure fixed up mode is turned on when you run this command.

8. At the file maintenance: prompt, type:
compact to E:\wutemp (ENTER)

9. If defragmentation completes successfully with no errors, type q, ( ENTER) . Type q again ( ENTER ) to quit Ntdsutil.exe. Follow the Ntdsutil.exe onscreen instructions to delete the .log files.
Note: Ntdsutil provides the current path to the .log files in the onscreen instructions. You do not need to delete the Edb.chk file.
To delete all the log files in the log directory, type: del E:\windows\ntds\*.log ( ENTER )

10. Verify there is sufficient free space in target location to accommodate original non-compacted version of the NTDS.DIT file and type:
move /Y D:\WINDOWS\NTDS\NTDS.DIT E:\Wutemp\ntds_old.dit ( ENTER )
You will now see 2 DIT files in the E:\wutemp directory: NTDS.DIT & NTDS_OLD.DIT

11. Document the Old DIT file size and the New DIT file sizes for that respective DC and paste in the CM disposition notes.

12. Now move the new compacted version of the NTDS.DIT file to the default location, type:
move E:\Wutemp\ntds.dit D:\windows\ntds\ntds.dit ( ENTER )
13. Type q ( ENTER ), and again type q ( ENTER ) to quit Ntdsutil.exe.

14. Restart AD DS. At the command prompt, type:
net start ntds ( ENTER ) to start the DNS, FRS, KDC, Netlogon services

15. Visually make sure the 4 ADS services are started.

---------------
You can also learn our AD replication trouble shooting videos from below links:

How AD replication works | understand AD replication workflow step by step, click on:--    • Active directory | understand AD repl...  
---------------
Journal wrap error | Event ID: 13568 | How to fix Journal Wrap errors, click on link-    • Active Directory | Journal wrap error...  
---------------
The target principal name is incorrect | Error 2146893022 | Active Directory, click on--    • The target principal name is incorrec...  
---------------
Lingering objects | how to remove lingering objects in active directory, click on--    • lingering objects | how to remove lin...  
---------------
Lingering objects in active directory | ERROR 8606 | event 1988, click on --    • lingering objects in active directory...  
---------------
Active directory replication | Insufficient attributes were given to create an object, click on--    • Active directory replication | Insuff...  
---------------
You can find even more videos on below link:
   / @masterofactivedirectory5595  

#activedirectory #whatisactivedirectory #masterofactivedirectory #Adis #activedirectorydomainservices #grouppolicy #activedirectorytutorial
#activedirectorybasics
#activedirectorypdf
#advancedirective
#whatisactivedirectorydomainservices
#windowsactivedirectory


Watch video How to Active Directory offline maintenance,(offline defrag) Active directory, Live Demo online without registration, duration hours minute second in high quality. This video was added by user MASTER OF ACTIVE DIRECTORY 29 August 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,190 once and liked it 10 people.