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
