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

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


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?

easyworksAuthor Commented:
Found my problem was I was copying and pasting into word to make replace changes and there was a hidden special character... found out when I copied it to notepad.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
easyworksAuthor Commented:
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.
easyworksAuthor Commented:
Nevermind found that the exchange server is running SP1!
easyworksAuthor Commented:
Resolved my own problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.