Managing user input and output
This module groups together several chapters to help you become more comfortable with user input and output in the PowerShell console.
We're going to learn how to use various cmdlets to write to the console, including Write-Host
and Write-Output
. Then we'll take a look at cmdlets Format-Table
, Format-List
, Select-Object
and Out-GridView
since they will enable us to format the output of a command in the PowerShell console. This will show us that Out-GridView
can be an invaluable ally when you need to quickly filter objects or carry out a search.
Finally, we'll take a look at user input by learning how to use the Read-Host cmdlet, whether to request the input of banal text or a more sensitive value such as a password.