powershell v2.0 - Export content from ForEach-Object -


i attempting create powershell command finds , exports owner of each distribution list provided in cvs.

[ps] c:\windows\system32>import-csv $path_import | foreach-object {get-qadgroup $_.identity | select managedby,name | export-csv $path_export} 

currently script output screen information trying capture export last line.

any assistance appreciated.

try this:

import-csv $path_import | foreach-object {get-qadgroup $_.identity |  select managedby,name } | export-csv $path_export -notypeinformation 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -