-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Get-WinADForestDetails not working with WAN-Optimizer #32
Comments
This is coming from a single module: https://github.com/EvotecIT/PSSharedGoods/blob/master/Public/ActiveDirectory/Get-WinADForestDetails.ps1 During deployment the function is merged for those modules so that you don't need pssharedgoods for all modules. So if you modify it there, next release for all modules it will fix itself. You would need to tell me more what happens with WAN Optimizer because I am not sure what happens? |
Hopefully this can help :-) ` PS C:\Windows\system32> $Filter = "*" $Test2 = (Get-ADDomain -Identity $Domain).ReplicaDirectoryServers | ForEach { Get-ADDomainController -Identity $_ -Server $QueryServer }
30 PS C:\Windows\system32> |
Can you tell e what sort of this WAN optimizer is ? is it some product or what? |
For example |
It's a bad implementation of the riverbed, because this appliance is a "fake rodc. |
If there are WAN-Optimizer in an active directory environment this function is not working.
This is because Get-ADDomainController -Filter *
Small change and it will also work in these environments.
#$DomainControllers = Get-ADDomainController -Filter $Filter -Server $QueryServer -ErrorAction Stop
$DomainControllers = (Get-ADDomain -Identity $Domain).ReplicaDirectoryServers | ForEach { Get-ADDomainController -Identity $_ -Server $QueryServer }
This change should be done in multiple modules our maybe a chance for refactoring?
The text was updated successfully, but these errors were encountered: