Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 636
  • Last Modified:

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.
0
Hilal1924
Asked:
Hilal1924
  • 2
1 Solution
 
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.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now