Out-GridView
安全GUIグリッドで確認
... | Out-GridView
結果をフィルタ・ソート可能なGUIで表示。-PassThruなら選択行を後段へ渡せ、「一覧から選んで処理」が一行で書ける。
実行例
Get-Process | Out-GridView -PassThru | Stop-Process選んだプロセスを停止
書式
<cmd> | Out-GridView [-PassThru]
実行前の注意
表示のみ(-PassThru後段に注意)。
関連コマンド
- Where-Objectオブジェクトの絞り込み
- Format-Table / Format-List表示形式の切替