Open ferventcoder opened 8 years ago
How we can adjust/remove the timeout of Read-host?
@Skolzack you can't currently. That's why this enhancement ticket exists.
Okay, thx.
Actually, one option does exist --use-system-powershell
But that option cannot be used with BoxStarter. Meaning that Read-Host cannot be used without time-out with scripts invoked with BoxStarter. Or am I missing something?
@robsiera That would be a Boxstarter issue.
The timeout for user input in PowerShell scripts is 30 seconds. Allow script writers to adjust that timeout.
Workaround
--use-system-powershell
to have no timeout (will be a blocking operation).