Benson01_160074
Jul 16, 2014Nimbostratus
Disconnect iControl if user is idle?
Powershell script:
Initialize-F5.iControl -hostname 'xxx.xxx.xxx.xx' -credentials (Get-Credential) Read-Host 'Input' User idles and never enters an input while ($true) { Never reaches here }
If the script hangs at Read-Host for, say, 10 minutes, I want my script to stop working. I want to either exit the script, or uninitialize the F5 connection. Is there any way to do this? Read-Host doesn't appear to have a timeout option. I have also looked at LocalLBProfileTCP methods (such as set_idle_timeout) without success.