none
Hide the AD user from the GAL RRS feed

Answers

  • Hi Sounder,

    this is very possible:

    ... | Set-ADUser -Replace @{ MsExchHideFromAddressLists = $true }

    This should basically do it. Replace the three dots with something that returns users. You could get a list of usernames using Get-Content, Get-ADGroupMember if they are all part of the same group, etc.

    Somehow you need to know which user to edit, once you have them, just pipe them to Set-ADUser to do the job.

    Cheers,
    Fred


    There's no place like 127.0.0.1

    Thursday, March 2, 2017 5:28 PM

All replies

  • Hi Sounder,

    this is very possible:

    ... | Set-ADUser -Replace @{ MsExchHideFromAddressLists = $true }

    This should basically do it. Replace the three dots with something that returns users. You could get a list of usernames using Get-Content, Get-ADGroupMember if they are all part of the same group, etc.

    Somehow you need to know which user to edit, once you have them, just pipe them to Set-ADUser to do the job.

    Cheers,
    Fred


    There's no place like 127.0.0.1

    Thursday, March 2, 2017 5:28 PM
  • AD Users shouldn't be in GAL unless they're Exchange recipients.  You should do this at the Exchange level using Set-Mailbox, Set-MailUser, Set-MailContact or Set-DistributionGroup as appropriate.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Thursday, March 2, 2017 6:00 PM