If you use a Windows Server os with an actual citrix Version ....
You can use the registry entry under hkcu/software/policies/Microsoft/Windows NT/terminal services
Value name: MaxIdleTime
Value type: Reg_Dword
Value: 0 for no disconnect
But if you set the gpo setting „set time limit for active but idle terminal services sessions“ under computer configuration. The computer configuration policy setting takes precedence.
l
Landon Winburn
08/20/2020, 3:45 PM
Pretty sure that value is only read once at logon. If changed it does not change the timeout. When I was with AppSense we allowed the ability to use ADMX actions in the "pre-session" trigger just for this use case. This allowed us to use conditions like published application name and others to apply different timeouts at time of logon.
j
James Rankin
08/20/2020, 3:46 PM
Scheduled Task to run this after user logon dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
WScript.Sleep (6000)
Loop
😁 2
💡 1
j
Jon Rolls
08/20/2020, 6:29 PM
Pretty sure you need to set this with Group Policy, because it needs to be early in the session. As @Landon Winburn says, at AppSense we added an early trigger (which runs at same time as GP) just for this purpose.
s
Spencer Sun
08/20/2020, 7:45 PM
This may not be the best answer, but I would use Mouse Jiggler to keep the session open.
j
Jeremy Saunders
08/21/2020, 1:37 PM
Thanks guys. @Landon Winburn and @Jon Rolls was thinking about a user case I discussed with Shane Wescott many years ago around this 🙂 Agreed @Spencer Sun. This is what I'm currently doing, but it's a bit crappy.