Who's Online
12 visitors online now
1 guests, 11 bots, 0 members
Support my Sponsor
  • An error has occurred, which probably means the feed is down. Try again later.

Hide Public folders from Global Address list

We have more than 250 Public folders which are mail enabled on Exchange 2010 server. Need to hide all of them from being visible in Global Address List. Looking for a script to be ran that will set “Hide from address list” attribute for all folders.

Tried

Get-PublicFolder “\” -Recurse -ResultSize Unlimited | Set-PublicFolder -HiddenFromAddressListsEnabled $true

and

“Get-PublicFolder “\” -Recurse -ResultSize Unlimited | Where-Object { $.Identity -ne “\” -and $.MailEnabled -eq $true -and $_.HiddenFromAddressListsEnabled -eq $false } | Set-PublicFolder -HiddenFromAddressListsEnabled $true”

First one errors stating that unable to change settings for root which is as expected and second runs without any issue.

But checked after 24 hours in OWA and Outlook and also restarted server still could view all folders in GAL and also Hide from Address List isn’t unchecked

 

Solution:

Please update-addresslist using following command:

Set-AddressList “Public  Folders” –RecipientFilter {RecipientType –eq “PublicFolder”}
update-addresslist “Public Folders”

Comments are closed.