?
Solved

modify Exchange Dynamic Dist List using EMS to ignore hidden mailboxes

Posted on 2011-03-02
1
Medium Priority
?
867 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

770 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