Create Dynamic Distribution List containing users enabled for Office Communicator

we have Exchange 2007 SP1,  Windows 2003 Active directory and recently deployed Office Communicator 2007 R2.

at this time the OCS deployment is in a pilot phase, we have enabled certain users in IT and there is a specific need to create a Dynamic DL in exchange which contains users enabled for OCS.

How can i create one, please suggest.

Cheers!
amku03Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
endital1097Connect With a Mentor Commented:
my bad, i took an old script where they needed an or
delete the group and change the command

((EmailAddresses -like 'SIP:*') -and
0
 
endital1097Commented:
For 2010:
New-DynamicDistributionGroup -Name TestDDG -RecipientFilter { ((EmailAddresses -like 'SIP:*') -or (((((((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUniversalDistributionGroup') -or (RecipientType -eq 'MailUniversalSecurityGroup') -or (RecipientType -eq 'MailNonUniversalGroup') -or (RecipientType -eq 'DynamicDistributionGroup'))))))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))))) }

for 2007:
New-DynamicDistributionGroup -Name TestDDG -RecipientFilter { ((EmailAddresses -like 'SIP:*') -or (((((((RecipientType -eq 'UserMailbox') -or (((RecipientType -eq 'MailUniversalDistributionGroup') -or (RecipientType -eq 'MailUniversalSecurityGroup') -or (RecipientType -eq 'MailNonUniversalGroup') -or (RecipientType -eq 'DynamicDistributionGroup'))))))) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) ))) }
0
 
amku03Author Commented:
Thanks...trying this right now
0
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

 
endital1097Commented:
use my other script to verify members

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter -OrganizationalUnit $group.RecipientContainer | ft displayName,primarysmtpaddress
0
 
endital1097Commented:
remove the -organizationalunit switch for 2007
0
 
amku03Author Commented:
i am assuming thsi will take time to get created...
the command doesn't seems to coming out of execution...
0
 
endital1097Commented:
no it should run quickly
did it go to a line with
<<
0
 
amku03Author Commented:
yes it did
>>
0
 
endital1097Commented:
copy and paste the command in notepad
make sure it runs on a single line and try again
0
 
amku03Author Commented:
ok my bad...missed one }
its fine now
0
 
endital1097Commented:
did you verify memebers
0
 
amku03Author Commented:
Seems to be a problem...
I am previewing the DL through EMC and its giving all users as members.
I am sure that we have only 30 or 40 users max with OCS.

Where did I go wrong
0
 
amku03Author Commented:
This looks perfect!!
0
 
endital1097Commented:
great news. sorry about the or mixup :)
0
 
amku03Author Commented:
now on the second part:
how can i user your script to verify the members in EMS?

I am pretty new to powershell and I am getting errors while running your second script
0
 
endital1097Commented:
you must have 2007
update it to two lines

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter | ft displayName,primarysmtpaddress
0
 
amku03Author Commented:
Ok...need to work on this...but for now I am good.

Could you also take a look on my other open question:
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_26469054.html


Thanks for your help
0
 
amku03Author Commented:
Excellent!!!
0
All Courses

From novice to tech pro — start learning today.