Solved

Scripting a registry change for all users on a Citrix Xenapp 6 server

Posted on 2012-12-31
2
676 Views
Last Modified: 2013-03-26
Hello,
I have a misbehaving application that the vendor says requires a registry change to fix.  The application is published on a three server Citrix Xenapp6 farm and this registry change must be applied to each user who launches this application.  They have provided a .reg file that can be executed to create the appropriate keys but to accomplish this without a script we would need to log into the desktop of each Xenapp sever and execute this .reg file.  I need a method to script this registry change/addition when ever anyone logs into this server or this application.  For example, user one launches the application and is directed to Xenapp server three.  This Xenapp server should have a script that adds this registry key at logon.  We are using Termlogin.cmd to run various commands such as mapping drives, etc but I need to know how to execute this .reg file.  Any help would be greatly appreciated.  

Thanks.
0
Comment
Question by:bguilliams100
2 Comments
 
LVL 36

Expert Comment

by:Carl Webster
ID: 38732596
I would use Group Policy Preferences for everything including mapping drives, printers, registry settings, hiding drives, etc.
0
 
LVL 23

Accepted Solution

by:
Coralon earned 500 total points
ID: 38734767
termlogin.cmd?  Never heard of it.. but there are a *ton* of ways to deploy what you want.  The GPP that Carl mentioned is one way.

To directly answer the question:
Use
regedit.exe -s <path to .reg file>

Open in new window


You can use the usrlogon.cmd structure
You can add the values to hklm\software\wow6432node\microsoft\windows nt\currentversion\terminal server\install\software\<vendor registry keys>

I wrote an article on here about using the usrlogon.cmd structure to deploy this type of thing also.  

Coralon
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now