- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How out-gridview selection works in PowerShell?
With the PowerShell Out-Gridview output, you have an option to select one or multiple selections.
For example, if we run the below command, it will show us the output in the grid format.
PS C:\> Get-Process | Out-GridView
In this output, you don’t get any option to select the rows because its output mode is none. To add the single selection from the output, use the Output mode to single, and for the multiple selections use the output mode to multiple. Once you add the OutpuMode property you can see the OK and Cancel button at the bottom right of the grid.
Single output mode −
PS C:\> Get-Process | Out-GridView -OutputMode Single
We will select cmd and press ok.
NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ ----- -- ----------- 5 2.36 17.58 0.22 26096 1 cmd
Multiple selections,
PS C:\> Get-Process | Out-GridView -OutputMode Multiple NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ ----- -- ----------- 5 2.36 17.42 0.22 26096 1 cmd 41 20.99 7.89 29.95 24040 1 AcroRd32
- Related Articles
- Out-GridView in PowerShell
- How scriptblock works in PowerShell?
- How to get process output in GridView format in PowerShell ?
- How Ternary operator in PowerShell Works?
- How Parallel and Sequence execution works in PowerShell Workflow?
- How to disable GridView scrolling in Android?
- How to disable GridView scrolling in Android using Kotlin?
- Why substring slicing index out of range works in Python?
- How to create a gridView layout in an Android app?
- How to create GridView Layout in an Android App using Kotlin?
- How can we combine ROW selection with COLUMN selection in MySQL?
- How "getElementByID" works in JavaScript?
- How JVM works?
- How Web Works?
- How EXPORT_SET() function works in MySQL?

Advertisements