Solved

Adding Muliple Receive Connectors to an existing list

Posted on 2012-04-06
3
1,449 Views
Last Modified: 2012-04-06
Hello,

I'm attempting to add about 10 IP's receive connectors to an already existing set of IP's. I understand that if I simply use set-receiveconnectors it will overwrite the existing list.

I attempted to follow the steps located here;

http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors

using this script;


Open in new window

$RecvConn = Get-ReceiveConnector "USFSM-S-CASHUB1\Internal ABB and FOPE"
$RecvConn.RemoteIPRanges += "10.5.2.3", "10.5.2.4", "172.16.5.2", "172.16.5.3", "192.168.6.4", "192.168.6.5"
Set-ReceiveConnector "Relay Connector" -RemoteIPRanges $RecvConn.RemoteIPRanges

But receive the following error;

Exception setting "RemoteIPRanges": "Cannot convert value "System.Object[]" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Data.IPRange]". Error: "Faile
d to convert 192.168.6.5 from System.String to Microsoft.Exchange.Data.IPRange. Error: Error while converting string '192.168.6.5' to result type Microsoft.Exchange.Data.IPR
ange: The format of the IP address 192.168.6.5 is invalid. Example of a valid IP address: 192.168.1.10""
At line:1 char:11
+ $RecvConn. <<<< RemoteIPRanges += "10.5.2.3", "10.5.2.4", "172.16.5.2", "172.16.5.3", "192.168.6.4", "192.168.6.5"
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException

Does anyone have any ideas what I'm doing wrong?

Thanks
0
Comment
Question by:litog
[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 7

Expert Comment

by:abdulalikhan
ID: 37816588
Please change the Range Syntax to,

$RecvConn.RemoteIPRanges += "10.5.2.3-10.5.2.3", "10.5.2.4-10.5.2.4", "172.16.5.2-172.16.5.2", "172.16.5.3-172.16.5.3", "192.168.6.4-192.168.6.4", "192.168.6.5-192.168.6.5"
0
 

Author Comment

by:litog
ID: 37816599
Thanks. Is there a way to just enter the IP addresses instead of entering in that format? Maybe I have I have the wrong syntax?

Thanks again!
0
 
LVL 7

Accepted Solution

by:
abdulalikhan earned 500 total points
ID: 37816608
Actually what I know about the powershell this is how it goes I also have to check how to only enter IP Addresses through the shell. GUI can do the addition in IP addresses.

I can see that you can also add IP ranges as per your present requirement.

$RecvConn.RemoteIPRanges += "10.5.2.3-10.5.2.4", "172.16.5.2-172.16.5.3", "192.168.6.4-192.168.6.5"
0

Featured Post

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an Accepted Domain 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 >> Ac…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses
Course of the Month5 days, 13 hours left to enroll

626 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