powershell creation receive connector from csv
I’m trying to create a script that should create an exchange receive connector from a CSV file that contains the list of the connectors to create as well as some properties.
The problem is not the creation of the connector, which we can create from the csv, but the “remoteiprange” properties that throw an error.
The csv file has this format
“Name”,”Bindings”,”DeliveryStatusNotificationEnabled”,”AdminDisplayName”,”RemoteIPRanges”,”PermissionGroups”
“TestConn”,”0.0.0.0:25″,”True”,””,”192.168.101.0/23 192.168.102.0/23″,”AnonymousUsers, ExchangeServers, Custom”
So we read all the parameters from the file and try to create the new connector passing them to the command but the error we get is
New-ReceiveConnector : Cannot bind parameter ‘RemoteIPRanges’. Cannot convert value “192.168.101.0/23,192.168.102.0/23” to type “Microsoft.Exchange.Data.IPRange”. Error: “The format of the IP address
192.168.101.0/23,192.168.102.0 is invalid. Example of a valid IP address: 192.168.1.10″
I’m trying to create a script that should create an exchange receive connector from a CSV file that contains the list of the connectors to create as well as some properties.The problem is not the creation of the connector, which we can create from the csv, but the “remoteiprange” properties that throw an error.The csv file has this format”Name”,”Bindings”,”DeliveryStatusNotificationEnabled”,”AdminDisplayName”,”RemoteIPRanges”,”PermissionGroups””TestConn”,”0.0.0.0:25″,”True”,””,”192.168.101.0/23 192.168.102.0/23″,”AnonymousUsers, ExchangeServers, Custom” So we read all the parameters from the file and try to create the new connector passing them to the command but the error we get is New-ReceiveConnector : Cannot bind parameter ‘RemoteIPRanges’. Cannot convert value “192.168.101.0/23,192.168.102.0/23” to type “Microsoft.Exchange.Data.IPRange”. Error: “The format of the IP address192.168.101.0/23,192.168.102.0 is invalid. Example of a valid IP address: 192.168.1.10” Read More