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

What is the best way through Group Policy to make a registry file run on logon for computers in a domain?

I'm testing on a Windows Server 2012, with Windows 8 clients.

I have created a Group Policy applied to a 'Computers' folder of which the computers are in, but the .reg file is not running on sign in.

share|improve this question
Computers don't sign in. If you want to use a script then a startup script will run when the computer starts. A logon script will run when a user logs on. Computer settings need to be configured in a GP linked to the computer OU. User settings need to be configured in a GP linked to the user OU. If you want to use GPP then configure GPP under Computer Configuration if you want to run it for the computer or configure it under User Configuration if you want it to run for the user. – joeqwerty Apr 24 '13 at 3:06

I think the best way is to use Group Policy Preferences.

There are two places for these settings:

Computer Config\Preferences\Windows Settings\Registry


User Config\Preferences\Windows Settings\Registry

You can craft new registry settings for the recipients of this Group Policy in there.

You can create HKLM and HKCU, etc., registry keys in either the User or Computer configuration areas. It's basically just a matter of whether you want the registry settings to apply as the computer logs on (e.g. during bootup) or if you want the registry settings to apply every time a user logs on.

share|improve this answer
Group Policy Preferences -- I wish I could +1 more than once. – jscott Apr 24 '13 at 1:30

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.