One Send/Receive Connector Connecor Annoyance

Hi Guys, Small Issue here. Well I have a csv file which contains the names and Identity of the recieve connectors. what I need to do is import this csv file in powershell via import-csv command then pipe it to Set-RecieveConnector Command. It can look something like this:

import-csv C:\Connector.csv |foreach {Set-RecieveConnector -Identitty S_ -MaxMessageSize 10MB}

CSV File is in this format
"Identity"
"con1"
"Con2"
"con3"

Thanks for the Help.
LVL 12
Hilal1924Asked:
Who is Participating?
 
endital1097Commented:
import-csv C:\Connector.csv | foreach-object {Set-RecieveConnector $_.Identity -MaxMessageSize 10MB}
0
 
endital1097Commented:
when working with a csv file you must utilize the column hearder for the variable value, so you need to have it as $_.Identity
0
 
Hilal1924Author Commented:
Excellent - Worked Just fine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.