Setting Default OU For Distribution Groups In Exchange 2010…
As an Exchange administrator, you can set the default OU in which you want all newly created distribution groups to be stored. This may not be appealing for bigger companies, as they tend to have a complex OU structure and there will be more than one OU that holds the distribution groups. For a smaller…
As an Exchange administrator, you can set the default OU in which you want all newly created distribution groups to be stored. This may not be appealing for bigger companies, as they tend to have a complex OU structure and there will be more than one OU that holds the distribution groups.
For a smaller organization, this setting might come in handy as all groups will be stored in the correct OU, which keeps the OU structure tidy as well. By default, while creating a distribution group, you are given the option as to where the group has to be stored.
We can set the default OU globally by running Set-OrganizationConfig –DistributionGroupDefaultOU “DN of OU”. In my case, I have set to store all groups in an OU called “Groups”, in hew.local/howexchangeworks/groups.
Next time you create a distribution group, the OU is not filled by default. You are presented with the same wizard as before. Just go ahead and create the group and it will be stored in the right place. As an example, I created a “Test Group”. I didn’t make any OU selection.
After the group was created, I checked my OU and my group was there. All works then!
Setting the default OU didn’t succeed when I issued the command with the name of the group or the full OU path (with and without “”).
Anyone knows why? I checked the help in PowerShell to see what type of values the “DistributionGroupDefaultOU” takes, but there was no mention of it.
you have the \ wrong it should be hew.local/howexchangeworks
I have the same issue with the contacts. I’d like to change the default OU for contacts creating with OWA. I browsed the config files on the CAS but was not able to find a text line for this yet. I’ll try to find it but would appreciate if anyone has a hint in this case.
I’m also trying to change the default OU for mail contacts. Any progress on this?
I haven’t found a fix Bryon. I haven’t tried after writing the article to be honest ;-)
I kept getting the same error message even though my OU designation was 100% correct. I was finally able to set this config in my Exchange 2010.
Turns out my problem wasn’t the formatting of my OU information as all the posts suggested. I have a multi-domain forest. My users (as is the OU I wanted to use for my DistributionGroupDefaultOU) are all in a child domain of the root domain. All my email addresses use the root domain structure. I had the OU information 100% correct using either the OU=, DC=…etc. format or the domain/OU format but still got the error. Frustrating!!! Finally I thought to add the “DomainController” switch to the command pointing to a DC in the child domain and the command was processed successfully! On reflection, the earlier error message had been correct,,, the OU could not be found in the domain (or on the DC) the command (or rather Exchange) was using at the time. When I pointed the command to the correct DC (in the correct domain) the command worked.
As example, here’s what I have:
root domain= company.com (DC=Company,DC=com)
child domain= staff.company.com (“DC=STAFF,DC=Company,DC=com)
all my user accounts are in staff.company.com
all email addresses= email@example.com
my desired “DistributionGroupDefaultOU”= Groups (in root of staff.company.com)
Below is what finally worked for me:
Set-OrganizationConfig -DomainController “DC1.staff.company.com” -DistributionGroupDefaultOU “OU=Groups,DC=STAFF,DC=Company,DC=com”
Possibly my solution might also work for others if they have a single domain forest. I suspect my problem was caused by my Exchange 2010 server talking to a DC in a different domain in the forest than the one which contained the OU I was aiming for…
Hope this helps someone else out !!
BTW – to get the OU format 100% correct for your command, use “Active Directory Users + Computers”. On the menu bar: under “view” make sure “Advanced Features” is check marked. Then find the OU you want to use for your default location, on that OU right click and select properties. Go to the “Attribute Editor” tab. scroll down to “distinguishedName” and double click it. Copy the “Value” to your clip board. Use that for your OU switch in the PowerShell command.
Thanks for the detailed comment Rick.
This option only sets the default OU for distribution groups, not for contacts.
Any way to do this as part of a specific role? I have a few users with permission to create contacts and modify their respective distribution lists (as part of a role I created for them), but the contact user accounts end up in the Users OU, and I'd like to change that.