PowerTip: Use PowerShell to Obtain User Input

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”