Question : Deploy a change in registry in a terminal server farm


Hi
in a farm of 4 terminal servers, i wan't to remove some old keys in the registry. The part of the registry involved is HKEY_CURRENT_USER .
I could ofcourse make the changes through a login script. But since there is loadballancing on the farm. I cannot guarentee that all  users eventually will visit every terminal server.
And I don't wan't to be to messy, so I don't wan't the login script to run through the changes for ever.

Now how can i resolve this ?

Thanks in advance.
(The environment is Server 2008)

Answer : Deploy a change in registry in a terminal server farm

No you cannot do that.
If what you want to achieve is to run something one single time per user, per machine, you will have to write a script that runs when the user logs in on that machine (logon script, assuming these machines are part of a domain).
On your script you can do simple things like:
- Create a folder like C:\Results if it does not exist.
- Within that folder create a text file named %username%.txt (this will end up being named something like john.txt that is the username).
- Run whatever registry change you want.
- If that file does exist on the C:\Results you know you already ran the registry key for that user.
This will give you a script that will run every single that a user logs in BUT that will know if it ran already for that user on that machine.

Cláudio Rodrigues
Citrix CTP
Random Solutions  
 
programming4us programming4us