Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create Dynamic Distribution List  containing users enabled for Office Communicator

Posted on 2010-09-13
18
Medium Priority
?
666 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 2000 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
In this video we show how to create a mailbox database 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 Servers >> Data…
To show how to generate a certificate request 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 Servers >> Certificates…
Suggested Courses

670 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