Asking Questions: `Read-Host`

Read-Host asks a question, waits, and hands back what was typed, always as text, -MaskInput shows stars instead of the answer, and a parameter is usually the better way in, because a question needs someone at the keyboard and a script that runs on its own has no one there.

Updated

Cheat sheet for the lesson Asking Questions: `Read-Host`: Read-Host asks a question, waits, and hands back what was typed, always as text, -MaskInput shows stars instead of the answer, and a parameter is usually the better way in, because a question needs someone at the keyboard and a script that…
Category
PowerShell
Level
Apprentice
Tags
mandatory-parameter, parameter, powershell, read-host