Tuesday, 7 February 2017

How to check replication status of all Domain Controllers and replication status of users across Active Directory Forest

Suppose you are working in that company who have various locations and have multiple domain controllers, recently that company opened new branch in new region and you have created new Domain controller for that region and now you want to check that new domain controller able to see or replicate properly among all domain controllers and users or objects created under new domain controller able to sync properly in the Active Directory Forest.

Use below command to get all the domain controllers details in a text file (DCDetails.txt).

  •       DSQuery Server –O RDN > DCDetails.txt

Use below command to check the status of the newly created users among all domain controllers. This command gives output in text file named Detail.txt

  •         For /F “Tokens=*” %L IN (DCDetails.TXT) DO DSQuery user –DomainRoot –Name Username> Detail.txt

No comments:

Post a comment