Solved

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

Posted on 2014-10-20
3
436 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…

786 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