Skip to content

Find all the DCs in the site#1423

Merged
bill-long merged 2 commits into
mainfrom
dpaul-DCCoreFix
Jan 10, 2023
Merged

Find all the DCs in the site#1423
bill-long merged 2 commits into
mainfrom
dpaul-DCCoreFix

Conversation

@dpaulson45
Copy link
Copy Markdown
Member

Issue:
With Get-ADDomainController without the parameter -Filter it was only returning a single server. Therefore, made the check pointless.

Fix:
Use Forest.FindAllGlobalCatalogs(string) instead to find all the GCs in the site that we want.

https://learn.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.forest.findallglobalcatalogs?view=dotnet-plat-ext-7.0

Validation:
Lab tested

Resolved #1140

@bill-long bill-long merged commit 6ca4e5b into main Jan 10, 2023
@bill-long bill-long deleted the dpaul-DCCoreFix branch January 10, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] - Health Checker - DCCoreRatio function only detects a single DC in Site

3 participants