I hope you are all well and can assist.
I would like to build a query at does the following:
1) Gets a list of all domain controllers
2) For each domain controller, determine if it is a global catalog or not
3) Write to a file the names of the domain controllers that are not global catalogs
Any help greatly appreciated.