citrix xenapp 4.5

mgmohiuddin
mgmohiuddin used Ask the Experts™
on
we have some 20 servers on which the idle connection timeout is set to 20 minutes in terminal services configuration. i want to change it to 40 minutes. there is no setting for this is citix policy, what is the fastest way i could increase this setting on all the servers.  the setting is set on all servers by selecting override user settings and is set to 20 minutes in ICA-TCP in terminal services configuration. i need to change it on all servers to 40 minutes.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
can it be done using a script. this will be my preferred method
Tomas ValentaIT Manager
Commented:
The registry path on terminal server is:
HKLM \SYSTEM \CurrentControlSet \Control \Terminal Server \WinStation \RDP-Tcp
fInheritMaxIdleTime = 0
MaxIdleTime  =       Maximum idle time in seconds for user sessions

Can I write script for you ?
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tomas ValentaIT Manager
Commented:
In Cmd you can modify this value on one server, then export this registry part in Regedit to file and run this file remotelly on servers.
In VBScript:
**************
Option Explicit
On error resume next

RegKeyValueWrite("HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStation\RDP-Tcp\MaxIdleTime",2400)

Sub RegKeyValueWrite(sRegKey,sValue)
 Dim oShell
 Set oShell = WScript.CreateObject("WScript.Shell")
 oShell.RegWrite sRegKey, sValue
 End Sub
*************
the script is running by cscript /nologo name_of_script_file.vbs
If you have list servers in your file then this script should be extended by reading this file and doing changes remotelly.
Use Group Policy....It will override everything else
Tomas ValentaIT Manager
Commented:
Small correction, when you call procedure RegKeyValueWrite the parameters are without parenthesis:

**************
Option Explicit
On error resume next

RegKeyValueWrite "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStation\RDP-Tcp\MaxIdleTime",2400

Sub RegKeyValueWrite(sRegKey,sValue)
 Dim oShell
 Set oShell = WScript.CreateObject("WScript.Shell")
 oShell.RegWrite sRegKey, sValue
 End Sub
*************
Tomas ValentaIT Manager
Commented:
Hello mgmohiuddin,
did you try my script ?
Tominov

Author

Commented:
I actually assigned points and accepted the solution and submitted. \this is where it ended up. Thanks for the help. I will request the moderator to look into it and assign points to all those who have answered

Author

Commented:
thnx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial