Solved

modify Exchange Dynamic Dist List using EMS to ignore hidden mailboxes

Posted on 2011-03-02
1
848 Views
Last Modified: 2012-05-11
So I need to tell all my dynamic dist lists to ignore hidden mailboxes.  I ran these tests.  Below, #1 did not work, #2 did (for creation).  See #3 below and help me get the correct syntax to change a dynamic distribution list using the parameters that are detailed in #2 below

(1) **DID NOT WORK**
New-DynamicDistributionGroup -Name "tgmtest3" -OrganizationalUnit 'mydomain.com/Americas/Groups/Distribution' -RecipientContainer mydomain.com -RecipientFilter { recipienttype -eq 'usermailbox' -and HiddenfromAddresslistsEnabled -eq $false}

(2) ** This works**
New-DynamicDistributionGroup -Name "tgmtest4" -OrganizationalUnit 'mydomain.com/Americas/Groups/Distribution' -RecipientContainer mydomain.com -RecipientFilter { recipienttype -eq 'usermailbox' -and -not(HiddenfromAddresslistsEnabled -eq $true)}

(3) ** What should this format be? ** - I can toggle like below and it says it is successful, but FALSE is not correct
Set-DynamicDistributionGroup -Identity 'tgmtest3' -HiddenfromAddresslistsEnabled $false
Set-DynamicDistributionGroup -Identity 'tgmtest3' -HiddenfromAddresslistsEnabled $true

Please help me.  I have been on this task all morning and it only should have taken me a minute.

- Stowy
0
Comment
Question by:stowyo
1 Comment
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 35019374
Set-DynamicDistributionGroup -Identity 'tgmtest3' -HiddenfromAddresslistsEnabled $false
Set-DynamicDistributionGroup -Identity 'tgmtest3' -HiddenfromAddresslistsEnabled $true

will only make the distribution group itself hidden or not hidden from the GAL that is not what you are looking for

you should do a

Set-DynamicDistributionGroup -Identity 'tgmtest3' -RecipientFilter { recipienttype -eq 'usermailbox' -and -not(HiddenfromAddresslistsEnabled -eq $true)}
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create an email address policy 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 Mail Flow…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now