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

An alternative to Posh v3 | out-grid -passthru in Posh v2

$
0
0

Hello All

I need to read in a csv file and display to result to the user, I was therefore thinking about using Out-Gridview.

Now the user needs to review the information display and then click OK to act on the information i.e. pass down the pipeline (one way or another) to execute the next step in the script. Normally the user will accept all information provided and click OK to continue (however as far as I am aware out-gridview cannot be piped down further in v2).

Some times the user may not want to act on a few items displayed and therefore I want the user to be able to deselect (i.e. default all items selected if possible) and then pass the remaining items down the pipeline for further processing.

I believe V3 out-gridview -passthru would be ideal for this situation, and perhaps that is the answer i.e. upgrade to v3.

Before I do this, is there a way to achieve this functionality in v2? possibly teeing off output or sending out to a file and then reading back in?

Thanks all
Ernie


Viewing all articles
Browse latest Browse all 10624

Trending Articles