Solved

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

Posted on 2012-12-31
2
693 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 25

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

820 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