Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

modify Exchange Dynamic Dist List using EMS to ignore hidden mailboxes

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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

618 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