Solved

Help with "Invalid filter syntax" error when creating new room address list in Exchange 2010

Posted on 2014-10-20
3
381 Views
Last Modified: 2014-10-20
I've got several departments hosted on a single Exchange server and am trying to create global address lists for each department so that they don't see each other.  I'm following the instructions here:

http://careexchange.in/how-to-implement-address-book-policies-in-exchange-2010-sp2-effectively/

I've gotten hung up on step 3, creating a rooms list.  The provided syntax is:

New-AddressList -Name ORGA-Rooms -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq “ORGA”)-and (RecipientDisplayType -eq “ConferenceRoomMailbox”) -or (RecipientDisplayType -eq “SyncedConferenceRoomMailbox”)}

When I run that (with the appropriate information entered), I get "Invoke-Command : Cannot bind parameter 'ReceipeintFilter' to the target.  Exception setting "RecipientFilter": "Invalid filter syntax.

I've been researching the issue and I have come to the conclusion that the problem is because I don't have the parenthesis in the right quantity and/or location, but I am having a heck of a time wrapping my head around where they're supposed to go.  

Points go to whoever can edit that command so that when I paste it into EMS, it works properly.  Thanks!
0
Comment
Question by:SINC_dmack
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 40392838
DONT COPY/PASTE powershell code from a web browser into EMS.  You will find that you dont have " and " but other variants of quote and speech marks.

Paste into notepad and then manually replace ALL of what looks like a " with a real "

USUALLY that is the problem
0
 

Author Closing Comment

by:SINC_dmack
ID: 40392855
You hit the nail on the head--apparently the copy-and-paste was screwing something up.  Instead of copying to Notepad first, I took it one step further and just manually typed in the entire command, and it worked.  (I feel kind of silly for not having tried that in the first place.)  Thanks for the quick response!
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40392864
Catches me still some days,even though I know the answer!
You're welcome.
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now