Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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 process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

828 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