Solved

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

Posted on 2014-10-20
3
529 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this video we show how to create an Address List 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 Organization >> Ad…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

705 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