Adding distribution group to specific address list
Hi all, Is there a way to a an universal distribution group (which contains 8 e-mail addresses from the same company) to show up on a specific address list ? I've created a dynamic address lists which shows me all members with company = 'xxxxx' From those members I want to create some distribution groups. This works, but the show up in the GAL and not that specific Address List. This is logic since the address lists queries all objects with company = 'xxxxx'. I can't set a company attribute to mu universal distribution group so I'm not able to show this to the endusers in their specific address list. Thanks in advance ! Kristof
July 16th, 2008 3:41pm

Hi Kristof, In that case you need to use any of the customattribute1-15 instead of Company because distribution list doesnt have an attribute called Company so which can not be added into address list with conditionalcompany filter. You can set custom attribute 11 with company name XXXX which you already set with Company attribute with below command. Get-Mailbox resultsize unlimited | where{$_.company eq XXXX} | Set-Mailbox CustomAttribute11 XXXX Update the Dynamic Distribution list custom attribute 11 to company name too and create address list which includes DLs also. New-AddressList -Name XXXXAddressList -ConditionalCustomAttribute11 XXXX
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2008 8:39pm

Hi, Kristof, I tested Amits way on my Virtual Machine; the second cmdlet misses a Property IncludedRecipients, after added it, the cmdlet will work: New-AddressList -Name XXXXAddressList -ConditionalCustomAttribute11 XXXX -IncludedRecipients AllRecipients Amit, As for first cmdlet, I tried it on, but my test mailboxs CustomAttribute wasnt changed, the command executed with no error
July 18th, 2008 7:12am

Thanks James for your findings. It seems that Get-Mailbox is not able to pull populated company attribute and Get-User is not able to pull CustomAttributes so we need to use combination of Get/Set-Mailbox and Get-User cmdlet andhere is the correct command. Get-User -resultsize unlimited | where{$_.company -eq "XXXX"} | Set-Mailbox -CustomAttribute11 "XXXX" Here is the result of my test, where user Amit Test has company name Test. [PS] C:\>Get-user -resultsize unlimited | where{$_.company -eq "Test"} Name RecipientType ---- ------------- Amit Test UserMailbox [PS] C:\>Get-User -resultsize unlimited | where{$_.company -eq "Test"} | Set-Mailbox -CustomAttribute11 "Test" [PS] C:\>Get-user -resultsize unlimited | where{$_.company -eq "Test"} | Get-Mailbox | fl Name, Customattribute11 Name : Amit Test CustomAttribute11 : Test
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2008 8:52am

Great, Amit, Hi, Kristof, the cmdlet also tested on my side
July 18th, 2008 9:41am

Question anwered ! Thanks all for your responses. I've managed to add use a custom variable. Groups are now perfectly shown in their specific address books. Case closed !
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2008 11:00am

It's works fine. Thank you.
July 20th, 2010 3:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics