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
Can't access local AD #83
Comments
Deutsch ist überhaupt kein Problem. But let's stick to English, to make it easier for other users to follow this issue. You are right with your assumption and your sample code would work. I will consider integrating the code in the next hotfix release - but we must find the root cause first: Why does Set-OutlookSignature detect this specific trust anyhow? Please open the Active Directory Domains and Trusts MMC snap-in and check, if the root domain contoso.com has configured a trust to itself. If yes, than this is something you should investigate (I have never seen such a configuration, and ad-hoc can't imagine why this would be neccessary). |
Hi Markus, There is no reference to |
After using several Powershell cmdlets, I can confidently say there is no "special" trust relation from the parent domain to itself (which would be really weird, indeed). My guess is that this happens because forest name == domain name, which is against M$ best practice. So I really can't fault your script here! |
Nonetheless, the code change you proposed makes sense and I will integrate it in the next hotfix release (which will very likely be released until the end of this week). |
Hi, I've tried running Set-OutlookSignatures for the first time.
The script throws an error while trying to access the on-prem AD. I believe this is happening because the forest name is identical to the domain name.
Output (sorry for the German verbose message - I don't think there's a way to easily change this, other than changing entire OS language...):
The issue is here: https://github.com/GruberMarkus/Set-utlookSignatures/blob/dfae4b37a84987ed76dc962b0fe52e29260019de/src_Set-OutlookSignatures/Set-OutlookSignatures.ps1#L1170
Debugging the
$LookupDomainsToTrusts
variable shows that it already containscontoso.com
, which is then being added a second time, which leads to the above exception.I was able to work around it like this:
But I'm not sure if this is the best approach. If you think it is, let me know and I'll create a PR.
The text was updated successfully, but these errors were encountered: