Solved

modify Exchange Dynamic Dist List using EMS to ignore hidden mailboxes

Posted on 2011-03-02
1
860 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
[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
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
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…
This video discusses moving either the default database or any database to a new volume.

691 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