|
Re: Using the $_ pipeline with WMI Ok, so now I have
$fileName = "C:\testUninstall.csv"
Import-csv $fileName |% {gwmi win32_product -filter
"IdentifyingNumber='$($_.IdentifyingNumber)'"}
I was trying to do this:
Import-csv $fileName |% { {gwmi win32_product -filter
"IdentifyingNumber='$($_.IdentifyingNumber)'"}
| foreach( write-host "Uninstalling " $_.name )
but I never get the name.
What is the |% syntax for? |