We help IT Professionals succeed at work.
Get Started

PowerShell help with Exchange 2010 AddressBook

easyworks
easyworks asked
on
135 Views
Last Modified: 2017-11-13
So I have an SBS 2011 with Exchange 2010 in a company that is trying to keep 2x different groups separate in the contact list from seeing each other. I know in exchange 2013 how to do this, but having problems figuring out how to do it in 2010. In 2013 I would do...
New-AddressList -Name "CompanyName_Users_DGs" -RecipientFilter {((RecipientType -eq 'UserMailbox') -or (RecipientType -eq "MailUniversalDistributionGroup") -or (RecipientType -eq "DynamicDistributionGroup")) -and (CustomAttribute1 -eq "CompanyName")}

Open in new window

New-AddressList -Name CompanyName_Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq "CompanyName")-and (RecipientDisplayType -eq 'ConferenceRoomMailbox') -or (RecipientDisplayType -eq 'SyncedConferenceRoomMailbox')}

Open in new window

New-GlobalAddressList -Name "GAL_CompanyName" -RecipientFilter {(CustomAttribute1 -eq "CompanyName")}

Open in new window

New-OfflineAddressBook -Name "OAB_CompanyName" -AddressLists "GAL_CompanyName"

Open in new window

New-AddressBookPolicy -Name "ABP_CompanyName" -AddressLists "CompanyName_Users_DGs","CompanyName_Rooms" -OfflineAddressBook "\OAB_CompanyName" -GlobalAddressList "\GAL_CompanyName" -RoomList "\CompanyName_Rooms"

Open in new window

Get-Mailbox -resultsize unlimited | where {$_.CustomAttribute1 -eq "CompanyName"} | Set-Mailbox -AddressBookPolicy "ABP_CompanyName"

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE