-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] - Health Checker - Remove AD Module dependencies #2252
Comments
$ComputerName="NY-EX19-01" #Need to check that (Get-ExchangeServer $ComputerName).OrganizationalUnit always has the right domain, and in FQDN format |
@Shinbaum if you change |
$ComputerName="NY-EX19-01" Works in my lab, but all the DCs are GCs. Can directorysearcher pick a DC that is not a GC? |
Could use this function to find the GC. Shared/ActiveDirectoryFunctions/Get-GlobalCatalogServer.ps1 |
$ComputerName="NY-EX19-01" #This will error if there is no GC in the same site as the Exchange server |
That would likely be fine, since it isn't supported to be that way. |
Describe the issue
Been seeing a lot of odd issues with the AD cmdlets, we just need to remove them and come up with ways to get the information without using them.
Commands that need to be removed:
Get-ADComputer
Get-ADPrincipalGroupMembership
Get-ADObject
Need to use LDAP Query to find the information that we need.
The text was updated successfully, but these errors were encountered: