Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Can I change the value of an object property within powershell pipe?

$
0
0

Hello 

    I would like to know if you can alter an object property while stream the data through the pipe i.e: Import-Csv file.csv | Select-Object id,col | ForEach-Object { $_.col = "Test" } ? 


Viewing all articles
Browse latest Browse all 10624

Trending Articles