JAEN

PowerShell

Read-Host

SafeInteractive input

$v = Read-Host '入力してください'

Reads user input; -AsSecureString masks passwords — the safe front door for interactive scripts.

Examples

  • $pw = Read-Host 'Password' -AsSecureStringMasked password entry

Syntax

Read-Host 'prompt' [-AsSecureString]

Before you run it

Input only.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store