choco icon indicating copy to clipboard operation
choco copied to clipboard

Allow adjusting Read-Host default timeout

Open ferventcoder opened this issue 8 years ago • 6 comments

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).

ferventcoder avatar May 31 '16 12:05 ferventcoder

How we can adjust/remove the timeout of Read-host?

Skolzack avatar Jul 21 '17 15:07 Skolzack

@Skolzack you can't currently. That's why this enhancement ticket exists.

ferventcoder avatar Jul 21 '17 16:07 ferventcoder

Okay, thx.

Skolzack avatar Jul 21 '17 16:07 Skolzack

Actually, one option does exist --use-system-powershell

ferventcoder avatar Jul 21 '17 16:07 ferventcoder

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 avatar Aug 26 '22 11:08 robsiera

@robsiera That would be a Boxstarter issue.

pauby avatar Aug 26 '22 14:08 pauby