PowerTip: Use PowerShell to Obtain User Input

Doctor Scripto

Summary: Learn how to use Windows PowerShell to solicit user input.

 

Hey, Scripting Guy! QuestionHow can I solicit input from the user?

Hey, Scripting Guy! Answer Use the Read-Host cmdlet:

$in = Read-host “enter the data”

 

0 comments

Discussion is closed.

Feedback usabilla icon