Essentially he just pipes the import-csv
c:\file.csv | new-cmboundary
with 3 values, Name, Type,Value and it works. I've copied this to the T and cannot for love nor money get this to work.Looking at the help for that cmdlet, pipeline input is not accepted. How did he get the pipeline input accepted?

I cam up with something like this but, not working at all:

I have a CSV which i have processed subnet information in using CONCAT and some other functions. I have address range boundaries and Sites and want to automate the creation of SCCM IP Address Range boundaries using PowerShell and the CSV file and New-CMBoundary
cmdlet. Please See below:

This obviously isn't quite right, Can you see what I'm trying to do? how do i get each row from the CSV into the respective variable but then enumerate through using the ForEach loop? If that is even the best method.

Todas as Respostas

It looks your varaiables for $site and $range is your problem your are expandnig the properties out side the loops so they all come as one variable. I also would not use spaces between your titles in a csv but if you do you can just do a foreach loop
and then do $subnet."CSV Heading" below would be with your heading you specified in the above script.