Organize Active Directory database offline

Source: Internet
Author: User

Organize Active Directory database offline


from The beginning, the Active Directory has a ADDS service, the domain administrator of the AD management is also much easier. in earlier versions such as-f8-, you will need to restart your computer for the directory Service Restore Mode - Enter the Restore Mode password (password can be ntdsutil Restore) to manage the Active Directory database, it is now only necessary to pause the AD DS service and then enable it after the operation is complete.

In maintaining the Active Directory database process, in addition to regularly monitor the Active Directory database, troubleshooting, analysis, space monitoring and other work, but also need to organize the Active Directory database.

There are two ways to sort it out: one is to organize it online (by DC Auto-complete), one is off-line (manual)

1. Online:DC will automatically run the so-called "garbage collection program" Every few hours to organize the AD Library, and it simply rearranges and arranges the data efficiently. the size of the database file (Ntds.dit) is not reduced. AD is online at this time . To reduce the size of the Active Directory database, you need to defragment the database offline.

2. Offline Grooming: The ADDS service needs to be paused ,2003 Previous versions need to go into directory Restore mode. Offline finishing will create a new, neat database file, if the original database is fragmented (fragmented), the file may be more than the original file is much smaller, but it is possible that the file will become larger.

My understanding: Offline Finishing is equivalent to compression (fragmentation), this compression (fragmentation) of peace commonly used RAR and other compression software,AD is the object occupied by the space to release, such as deleting a user, it will not automatically free up space. Online collation is not free space, need to compress will be able to release the occupied space. Note: space is not the size of the file, compression is the contents of the content classification, the completion of the file will be larger than before. Microsoft's Hyper- v is also this way. Previously there was a file deletion in the virtual machine that did not immediately free up space and needed to use compression to free up the space occupied by the previously deleted files.

Here's how to get started. 2008R2 in Action

Stop for the AD DS domain service, the domain administrator opens cmd. Run the:Net stop NTDS

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7C/E1/wKioL1baxRqTU7pCAAIw17AIPos908.jpg "title=" 1.jpg " alt= "Wkiol1baxrqtu7pcaaiw17aipos908.jpg"/>

At the command prompt, type the following command.

C \Ntdsutil enter Ntdsutil command

Ntdsutil:Activate Instance NTDS activation NTDS instance

Ntdsutil: files into file maintenance mode

File maintenance:Compact to C:\Temp files sorted into c:\temp

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/7C/E2/wKiom1baxYWjAeLiAAJPbmnnyBg747.jpg "title=" 2.jpg " alt= "Wkiom1baxywjaeliaajpbmnnybg747.jpg"/>

type two times "Q" to exit the ntdsutil command

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7C/E2/wKiom1baxczxweacAAA0thql-h8016.jpg "title=" 2.1. JPG "alt=" wkiom1baxczxweacaaa0thql-h8016.jpg "/>

The compressed Active Directory database file overrides the Active Directory database file in the default location

Use the command or copy and paste the replacement file, the following is the use of the command

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7C/E1/wKioL1baxljhEibFAACAgBWh1HI331.jpg "title=" 3.jpg " alt= "Wkiol1baxljheibfaacagbwh1hi331.jpg"/>


Delete log files under the default Active Directory database directory del c:\windows\ntds\*.log650) this.width=650; "Src=" http://s2.51cto.com/wyfs02/M02/7C/E2/ Wkiom1baxeeykbyzaabhtsfwvbw152.jpg "title=" 4.jpg "alt=" Wkiom1baxeeykbyzaabhtsfwvbw152.jpg "/>

Finally, restart AD DS Domain Services Net start NTDS

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7C/E1/wKioL1baxoaR6923AACA1vXUZZY490.jpg "title=" 5.jpg " alt= "Wkiol1baxoar6923aaca1vxuzzy490.jpg"/>


This article is from the "Zhao Dongwei Learning record" blog, so be sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1747907

Organize Active Directory database offline

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.