?
Solved

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

Posted on 2014-10-20
3
Medium Priority
?
559 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 2000 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
1
 

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

752 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