Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a software tweak that I have to make for all users on a terminal server system, that is not available to me as a group policy option, but which exists as a key in regedit under HKEY_CURRENT_USER\SOFTWARE.

If I was willing to write some code (making this no longer a pure IT question) I suppose I could somehow reverse engineer which HKEY_USERS keys are for which users that need the fix.

To save me from logging in as 10 users on a terminal server and just double clicking a .reg file, is there some tool I could use, that will "deploy a registry change to HKEY_CURRENT_USERS for a set of users on a single machine"?

share|improve this question
Do you have an Active Directory thats support Group Policy Preferences? It would be dead simple if you do. – jscott Mar 26 '13 at 17:50
Unfortunately it's a standalone non-domain terminal server cloud box. – Warren P Mar 26 '13 at 17:51
up vote 2 down vote accepted

If the server is Windows Server 2008, Windows Server 2008 R2 or Windows Server 2102 you can create a local Non-Administrators group policy object that will apply to all non-administrators logging on to the server. You should be able to deploy the REG file in a logon script.

share|improve this answer
The logon script sounds like a good idea. – Warren P Mar 26 '13 at 18:20

you can via GPO have the machines in question run a script that pushes the staged regkey you want to those machines.

share|improve this answer
Can you use GPO even on a non-domain system? – Warren P Mar 26 '13 at 18:03
Yes you can.... – joeqwerty Mar 26 '13 at 18:06
yes you can, even if you dont want to use gpo, you can place the batch file in the ALL Users startup, on those boxes and have it run and install the staged reg key – DRO Mar 26 '13 at 18:09
That was the technically simplest route. I used reg import regfile.reg in the Registry RUN key in HKLM – Warren P Mar 26 '13 at 23:02

create a key (String Value) in HKCU\Software\Microsoft\Windows\CurrentVersion\Run and point it to a batch file that says:

IF EXIST %userprofile%\reg_ran exit
echo "It Ran" >> %userprofile%\reg_ran

Or just point HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce directly to the C:\directory_all_can_access\REG file, I think that would work too.

share|improve this answer
That helps for multiple computers. I am using multiple ACCOUNTS on a single terminal server computer. – Warren P Mar 26 '13 at 18:20
See my edited solution – user160910 Mar 26 '13 at 18:39
How am I getting no love here? I am the only one who gave an immediately usable example that should work for the purpose. :( – user160910 Mar 26 '13 at 20:05
I ended up doing a "reg import myreg.reg" directly from the RUN registry key. – Warren P Mar 26 '13 at 23:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.