Avatar of easyworks
easyworks
Flag for United States of America asked on

PowerShell help with Exchange 2010 AddressBook

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

PowershellExchangeSBS

Avatar of undefined
Last Comment
easyworks

8/22/2022 - Mon
Alan

Hi,

You don't say, but I am guessing that perhaps one of those commands is not working on the Exchange 2010 box?

Is that correct?

Alan.
ASKER CERTIFIED SOLUTION
easyworks

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
easyworks

ASKER
It appears though when i get to...
New-AddressBookPolicy -Name "ABP_MyCompany" -AddressLists "MyCompany_Users_DGs","MyCompany_Rooms" -OfflineAddressBook "\OAB_MyCompany" -GlobalAddressList "\GAL_MyCompany" -RoomList "\MyCompany_Rooms"

Open in new window


New-AddressBookPolicy is not a recognized as the name of a cmdlet.
easyworks

ASKER
Nevermind found that the exchange server is running SP1!
Your help has saved me hundreds of hours of internet surfing.
fblack61
easyworks

ASKER
Resolved my own problem.