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

Practical How-To

list files

list dirs

on dir

on file

Windows config

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples