I have a problem with AD replication. We use a third party app to create accounts in AD and then use a power script (called by the app) to create Exchange accounts. In a third party app, we can not tell how the GCA advertising account has been built and therefore 20 minutes have to wait to be replicated.
What I am trying to do is to find out which account is GC or repeated on the built on and connecting to that server ....
set adserversettings -preferredserver $ AdServer
I currently have the script and what I can not do is stop it when it gets the account and get GC to $ ADSiver The variable has to be allocated. The write-host line is only for testing there. <$> $ ForestInfo = [System.DirectoryServices.ActiveDirectory.Forest] :: GetCurrentForest () $ Gentleman Cadet = $ forestInfo.FindAllGlobalCatalogs () Import Module ActiveDirectory foreach ($ GC in $ Gentleman Cadet) { Type host $ GC.Name Get-aduser $ ADUser}
TIA
Andy
You can determine whether Get-ADUser
returns more than 0 objects to determine whether GC satisfies your query. or not. After that, use set ADServerSettings -PreferredGlobalCatalog
to configure preference
you specify that you want to search global listings and not just local directories would be required. The global list can be accessed at port 3268 by DC, so it becomes something like this:
No comments:
Post a Comment