Hide a Group of Contacts from GAL in Exchange 2007
We have Exchange 2007 SP1 environment running with an AD forest functional level of server 2003. We need to hide the contacts from an AD OU from being displayed in the GAL. How can we accomplish this with powersehll?For Instance:get-contact -organizationalunit 'OurDomain.net/apps/exchange/contacts/TestOU' For all of the contact records in this OU, turn the msExchHideFromAddressLists=TRUE onThanks!
March 2nd, 2010 11:01pm

Get-MailContact -OrganizationalUnit OurDomain.net/apps/exchange/contacts/TestOU | Set-MailContact -HiddenFromAddressListsEnabled:$true
Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2010 11:26pm

Try this: get-contact -organizationalunit 'OurDomain.net/apps/exchange/contacts/TestOU' | Set-MailContact -HiddenFromAddressListsEnabled:$True -- Ed Crowley MVP"There are seldom good technological solutions to behavioral problems.". "TekSys52" wrote in message news:e8150f76-b9d1-4082-9523-3e562b8068a3...We have Exchange 2007 SP1 environment running with an AD forest functional level of server 2003. We need to hide the contacts from an AD OU from being displayed in the GAL. How can we accomplish this with powersehll?For Instance:get-contact -organizationalunit 'OurDomain.net/apps/exchange/contacts/TestOU' For all of the contact records in this OU, turn the msExchHideFromAddressLists=TRUE onThanks! Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
March 2nd, 2010 11:31pm

Thanks for the fast response! How can I check if the command worked? Something like this?Get-MailContact -OrganizationalUnit OurDomain.net/apps/exchange/contacts/TestOU | ? {$_.HiddenFromAddressListsEnabled=$True }When I try that command I receive an error message: Property 'HiddenFromAddressListsEnabled' cannot be found on this object; make sure it exists and is settable.
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 12:27am

Thanks for the fast response! How can I check if the command worked? Something like this? Get-MailContact -OrganizationalUnit OurDomain.net/apps/exchange/contacts/TestOU | ? {$_.HiddenFromAddressListsEnabled=$True } When I try that command I receive an error message: Property 'HiddenFromAddressListsEnabled' cannot be found on this object; make sure it exists and is settable. give this a try: Get-MailContact -OrganizationalUnit OurDomain.net/apps/exchange/contacts/TestOU | ?{$_.HiddenFromAddressListsEnabled -eq $true}
March 3rd, 2010 12:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics