need a script for terminal server configuration

we have some 60 citrix servers. i will create a text file with list of server names. every server is manually configured in terminal server configuration --> session tab --> idle timeout as 20 minutes. override user configuration. i need to change the time from 20 minutes to 1 hour. operating system is windows server 2003.

I just want to change one value i.e idle timeout from 20 to one hour. text file with server names is ready, this setting is in terminal services configuration, ica-tcp properties, it is not on rdp-tcp, it is in th eproperties of ICA-tcp. sessions tab, idle timeout value should be 60 minutes.

need help to modify this value please
mgmohiuddinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steven CarnahanAssistant Vice President\Network ManagerCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KenMcFCommented:
You can do this from a GPO. There are ADM templates for Citrix servers that you can import into GPMC and apply to all your servers.

http://www.dabcc.com/downloadfile.aspx?id=282
xylogCommented:
I do not have a citrix server to test the registry setting on so you may need to adjust the registry setting:

for /f %i in (servers.txt) do reg add \\%i\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\ICA-tcp /v MaxIdleTime /d 20 /t REG_DWORD /f

Please note this is the syntax when run interactively from the command line. To run from a batch you must use %%i in place of %i in the for command.

rohantendulkarCommented:
Use Group Policy It will override all other settings
xylogCommented:
Registry settings override GPO settings on Windows 2003. Vista and later GPO will win. Regardless i agree GPO is the better way to manage settings like these, especially if you already have the Citrix GPO Templates deployed. If not however a script is a quick way to easily push out the same settings.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Citrix

From novice to tech pro — start learning today.