Writting to User Registry

W

Wayne Gibson

Hi,
Was wondering if anybody could help.
I want to be able to write some registry settings for another user profile
on a machine.
I am logged in as the administrator, but can't seem to find any examples of
how to do this.

I know it can be done, as I have seen WinGuides - Tweak Manager do it..

Any Ideas..

Thanks

Wayne Gibson
 
I

Igor Tandetnik

Wayne Gibson said:
Was wondering if anybody could help.
I want to be able to write some registry settings for another user profile
on a machine.

All user's hives are subkeys of HKEY_USERS. The name of the key is a
textual representation of a user's SID, as I understand.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
 
T

Torgeir Bakken (MVP)

Wayne said:
Hi,
Was wondering if anybody could help.
I want to be able to write some registry settings for another user profile
on a machine.
I am logged in as the administrator, but can't seem to find any examples of
how to do this.

I know it can be done, as I have seen WinGuides - Tweak Manager do it..

Any Ideas..

A manual way:

Start regedit.exe.

Type "loading a hive" in Regedit's help (under the index tab).

Load the user profile (typically C:\Documents & Settings\<user
name>\NTUSER.dat).
 
S

Steve

I think maybe a local policy for your machine would do
waht you are wanting. Look at running the MMC for Group
Policy, the build a local policy. You can do some great
stuff with Policies..
-Steve
 
H

Harvey Shields

If you can get away with it use LoadUserProfile, otherwise you have to get
user sid to create path to hive and load it manually. Not fun.

Good luck
Harvey Shields
 

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