You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
OCGV : Display only some properties but still pass the full object to the pipeline #261
I would like to be able to control what properties are displayed in Out-ConsoleGridView but still be able to get all object properties passed on the pipeline for further processing.
As far as I know, the only way to control what is displayed using ocgv is to use Select-Object to filter what properties to display.
Example :
Get-Process`|Select-Object-Property Name, Id `|Out-ConsoleGridView-Title 'Select processes to inspect'-OutputMode Multiple `|Foreach-Object {
Write-Host ('--- [{0}] ---'-f$_.Name)
Write-Host ('ID: {0}'-f$_.Id)
Write-Host ('Command line : {0}'-f$_.CommandLine)
Write-Host ('Working Set : {0}'-f$_.WorkingSet)
}
Output :
--- [Code] ---
ID : 34388
Command line :
Working Set :
--- [msedge] ---
ID : 22992
Command line :
Working Set :
However, as shown in my example, currently CommandLine and WorkingSet will not show anything as these properties are not passed down the pipeline.
Activity
Podbrushkin commentedon Jun 15, 2026
I always wondered why Select-Object itself doesn't put reference to original objects into output objects.