PowerShell: Prompt User for Input

By Xah Lee. Date: .
Read-Host prompt_string
Ask user to type an input. return whatever user typed.
$name = Read-Host "Enter name"

PowerShell: Input/Output


PowerShell in Depth

Path

Pipe

Comment

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples

Misc