Sometimes we need to know what AD Site Links are, their members, and the default options for replication partnerships are.
I built this short script to help me years to come, identify shortfalls/mistakes.
This query is configured to use the RootDSE (thats the users currently-logged-on-domain). By extrapolating the default naming context, we don't need to hard code the distinguishedName of the Configuration OU.
Date: 2009-12-04
As you can see above, the 'PAR to MAD' site-link has only one member; as does the 'LON to PAR' site-link.
LON and PAR sites do not won't to be in the defaultipsitelink once we fix the LON to PAR members
If you are working in more than one domain, as part of a wider forest (or multiple forests).. then this script should help...
- first lists the forest trusts and the domains under each target forest. Then, it separately lists all domains in the current forest