Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell get input from user

$Server = Read-Host -Prompt 'Input your server  name'
$User = Read-Host -Prompt 'Input the user name'
$Date = Get-Date
Write-Host "You input server '$Servers' and '$User' on '$Date'" 
 
PREVIOUS NEXT
Tagged: #powershell #input #user
ADD COMMENT
Topic
Name
2+2 =