How to change registry settings for all users

G

Gerald Tubo

I need to change a registry setting, which is located in
the HKEY_CURRENT_USER. I would like to be able to make
the change to all our users but I can't seem to find this
setting anywhere but the CURRENT_USER. Is there a
utility or script use to make these changes without
having log in to everyone's user account. Any help would
be appreciated. Thanks in advance.
 
M

Mark V

In said:
I need to change a registry setting, which is located in
the HKEY_CURRENT_USER. I would like to be able to make
the change to all our users but I can't seem to find this
setting anywhere but the CURRENT_USER. Is there a
utility or script use to make these changes without
having log in to everyone's user account. Any help would
be appreciated. Thanks in advance.

You can modify the %allusersprofile%\ntuser.dat registry hive file on
disk once for future created accounts.

For existing accounts I suggest a batch file in
\All Users\Start Menu\Programs\Startup\
that does some tests and then imports a REG file (for HKCU) if
neeeded.

There may be registy Permissions issues for Users importing to some
parts of HKCU. You would need to evaluate if that might be a
problem.

Domain Group Policies may be another solution.
 
M

Mark V

In said:
I need to change a registry setting, which is located in
the HKEY_CURRENT_USER. I would like to be able to make
the change to all our users but I can't seem to find this
setting anywhere but the CURRENT_USER. Is there a
utility or script use to make these changes without
having log in to everyone's user account. Any help would
be appreciated. Thanks in advance.

You can modify the <profile dir>\Default User\ntuser.dat
registry hive file on disk once for future created accounts.

For existing accounts I suggest a batch file in
\All Users\Start Menu\Programs\Startup\
that does some tests and then imports a REG file (for HKCU) if
neeeded as one method.

There may be registy Permissions issues for Users importing to
some parts of HKCU. You would need to evaluate if that might be a
problem.

Domain Group Policies may be another solution.
 
O

Oli Restorick [MVP]

If you are using an Active Directory domain, you can easily do this with
group policy. Either use the built-in policies, or save a .reg file from
regedit and run it using "regedit /s myfile.reg" from a login script.

Regards

Oli
 
G

Guest

Thanks guys for your suggestions, I will give these a try tomorrow. Will let you know if it works
 
G

Guest

First of all Thanks, this is definitely the right direction. I tested it on me and 5 enactive users that did not have administrative rights (whom I reactivated temporarily) and all worked flawelessly. The problem is that after I applied the policy to the appropriate OUs, about an hour later, I got a call from a user saying that when he logs on he is getting an error that basically says he cannot open the *.reg file that I saved. I had another user logon and she received the same error. I then tried one of the accounts which worked in the morning, and now that account gets an error. I checked permissions on the batch file and the *.reg file and everything looks good. I even logged on as one of the users with the error message and was able to open both files manualy. What could have happened between the morning when everything was working and a few hours later when it stopped working. Now only users with admin rights do not get the error. Thanks again in advance
 
B

balazs

Gerald said:
I need to change a registry setting, which is located in
the HKEY_CURRENT_USER. I would like to be able to make
the change to all our users but I can't seem to find this
setting anywhere but the CURRENT_USER. Is there a
utility or script use to make these changes without
having log in to everyone's user account. Any help would
be appreciated. Thanks in advance.

I have almost the same problem, but I would like
to make the registry changes programmatically as
part of an installation routine. I read Mark V's
suggestion to use a batch file executed at login
time, but I'd rather change the settings for all
users in one go.

Thanks in advance for any pointers,

Balazs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top