MsExchange Blog Spot Telnet25

April 30, 2009

Meta Data Clean UP Step By Step

Filed under: Active Directory — telnet25 @ 4:14 am

Log into one of your Domain controllers and perform fallowing steps. Initially there process or overall understanding what is about to happen is explained in a simple way. You are logged into domain controller, by using NTDSUTIL you will go into .DIT database located on this domain controller and you will

  • modify the .dit database
  • remove all references in regards to failed DC
  • when you exit the changes will be replicated to all other DC’s assuming your replication is working and other domain controllers will get rid of from all references to failed DC.

From command line.

image

1. Ntdsutil

2. metadata cleanup

3. Connections

4. Connect to Server ServerName

5. Q

6. Select operations target

7. List domains

8. List sites

9. Select domain number

10. Select site number

11. List servers in site

12. Select server number

13. Q

14. Remove selected server

15. Q

Great now you have accomplish basic clean up in the active directory databaseCrying

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog

What is “Clean meta data” in active Directory

Filed under: Active Directory — telnet25 @ 3:50 am

Metadata cleanup is one of the most serious task for network administrators as well as moving and seizing FSMO roles.

Before we talk briefly about metadata process I want to make sure you do understand the ADDS database ( .DIT) and its partitions. The ADDS database consist of below partitions

  • Domain
  • Configuration
  • Schema
  • Application

Now think about multi master replication model and what that mean is to you. When first domain controller introduced into forest/Domain , you now have domain controller which is authentication server waiting to provide ADDS directory services to its configured clients. Perfect when second DC is introduced into existing forest/domain ( DCpromo) now , .dit database from DC1 is copied into DC2 and DC2 become domain controller, authentication server as well.

image

So far so good, the replication amount these two domain controller keep both .dit database consistent and in sync stage and this is why when information is changed on DC1 reflects information on DC2 if the KCC on both domain controllers are happily replication delta changes.

What happen to FSMO roles, they got stuck on the first DC in this example and we will leave them there. Imagine you decided to have more redundancy and installed third DC into your forest/domain called DC3. Same story goes by .dit database is now reside on DC3 and thus DC3 become healthy domain controller.

What other services domain controllers provide, DNS, DHCP, WINS, File, Print service etc you name it and all these familiar to you.

Now imagine one day DC2 dies, due to hardware crash. Bad things happens and when they happen you release you never had any backup for the DC2, did I make you smile (-:

Okay how much we have to worry about losing DC2, if we are speaking of multi-master replication, can we purchase a new server and run DCPromo on it and replicate the .DIT database and its contend from DC1 or DC2?

Answer is of course this is why you would never have to worry about too much, because Active directory is redundant so does .dit database and its important contend.

Now you ordered new server name it DC2 just like the old one and you will run DCpromo to copy the .dit database from either one of the alive domain controller. You got couple problems doing this and you need to make some clean up if you are going to use same name for the new DC as DC2.

Let’s see why?

The simple answer will be, remember we talked about .DIT database and its partitions. In those partitions there are may references to each DC. simply failed DC2 still exist in the ADDS database even when it’s no longer physically connected to the network.

Just because it is no longer turned on does mean the database thinks it exist. Therefore replication from alive domain controllers to failed DC will be in trying state and will fail all the times. In a way thinking about pollution in the database.

why we need to clean this information? I just mentioned replication is having hard time, they try to locate the fail DC and obvious they cannot contact to it since it is not physically on the network. Many other dependency take will fail and you will end up having polluted .dit database.

So how we are going to get the garbage out the database is right thinking and metadata cleanup will be the way to do it for failed DC scenario.

once you clean up every information for the failed DC2 from .dit database, you will be able to bring new server with same name if you wish back to business with simple DCpromo

Now you know what "Clean meta data" mean is.smile_regular

Clean up server metadata

image

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog)

January 1, 2009

Active Directory Explorer & ADSIEDIT

Filed under: Active Directory — telnet25 @ 6:30 pm
ADE

ADE

 

This incredible tool seems to me advance version of ADSIEDIT.msc. I am including the description as it is on the TechNet site on the bottom as well as link to it. Connecting domain is very easy and straight forward and being able to take snapshots and work on it is very cool. On the lunch menu. Download the ADE from this link.

Connecting

  • Connect to: Domain, or DC name
  • User name: DomainUsername
  • Password: password

Take a snapshoot

  • Click file
  • Create snapshoot
  • Enter description    
  • Specify the path (make a folder called snapshoot and save it in there)
  • (C:SnapShootsmtp25-010109)

Open the snapshoot

  • File
  • Connect
  • Enter the path for previously snapshot to load
  • C:SnapShootsmtp25-010109

This is great for collection information, security auditing, training and etc snapshoot are read only

http://technet.microsoft.com/en-us/sysinternals/bb963907.aspx

Download ADE

Active Directory Explorer (AD Explorer) is an advanced Active Directory (AD) viewer and editor. You can use AD Explorer to easily navigate an AD database, define favorite locations, view object properties and attributes without having to open dialog boxes, edit permissions, view an object’s schema, and execute sophisticated searches that you can save and re-execute.

AD Explorer also includes the ability to save snapshots of an AD database for off-line viewing and comparisons. When you load a saved snapshot, you can navigate and explorer it as you would a live database. If you have two snapshots of an AD database you can use AD Explorer’s comparison functionality to see what objects, attributes and security permissions changed between them.

Best,

Oz ozugurlu MVP (Exchange)

MCITP (EMA), MCITP (EA) MCITP (SA),

MCSE (M+, S+) MCDST,

Security+, Server +, Project+

Blog: http://smtp25.blogspot.com/

Blog: http://telnet25.wordpress.com/


Blog at WordPress.com.