Solved

Create Dynamic Distribution List  containing users enabled for Office Communicator

Posted on 2010-09-13
18
660 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:amku03
  • 9
  • 9
18 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33667827
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
 

Author Comment

by:amku03
ID: 33667856
Thanks...trying this right now
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33667864
use my other script to verify members

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter -OrganizationalUnit $group.RecipientContainer | ft displayName,primarysmtpaddress
0
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 
LVL 32

Expert Comment

by:endital1097
ID: 33667868
remove the -organizationalunit switch for 2007
0
 

Author Comment

by:amku03
ID: 33667980
i am assuming thsi will take time to get created...
the command doesn't seems to coming out of execution...
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33667991
no it should run quickly
did it go to a line with
<<
0
 

Author Comment

by:amku03
ID: 33668001
yes it did
>>
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668010
copy and paste the command in notepad
make sure it runs on a single line and try again
0
 

Author Comment

by:amku03
ID: 33668015
ok my bad...missed one }
its fine now
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668030
did you verify memebers
0
 

Author Comment

by:amku03
ID: 33668062
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
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33668071
my bad, i took an old script where they needed an or
delete the group and change the command

((EmailAddresses -like 'SIP:*') -and
0
 

Author Comment

by:amku03
ID: 33668087
This looks perfect!!
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33668095
great news. sorry about the or mixup :)
0
 

Author Comment

by:amku03
ID: 33668110
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33668149
you must have 2007
update it to two lines

$group = Get-DynamicDistributionGroup "Contoso Users"
Get-Recipient -RecipientPreviewFilter $group.RecipientFilter | ft displayName,primarysmtpaddress
0
 

Author Comment

by:amku03
ID: 33668185
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
 

Author Closing Comment

by:amku03
ID: 33668187
Excellent!!!
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question