PSItem

suggest change
Get-Process | ForEach-Object -Process { 
  $PSItem.Name
}

Same as $_. $PSItem contains the current object in the pipeline. The $PSItem name was added in Windows PowerShell 3.0. You can use this variable in commands that perform an action on every object, or on selected objects, in a pipeline.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents