Archive: HKCU - Multiuser changes


HKCU - Multiuser changes
I have been trying to think of the best way to resolve a problem I am having.

What I need to do is make registry entries for each user that has logged into the PC.

I can add the entries to the Default User hive (c:\Documents and Settings\Default User\ntuser.dat), but that doesnt help me with adding the changes to all the users that have logged into the PC already.

The only way that I could think of to accomplish this task is to have something along the lines of EnumRegKey, but for a directory, and scan through the Documents and Settings directory. Then, using reg.exe, load the user's HKCU hive and make the necessary changes. Then use reg.exe again to unload the hive. Only problem with this is that I cant find a command that would work like EnumRegKey but for directories.

I just figured there had to be a better way to accomplish what Im going for. Also, while Im thinking about it, is there a way to load a user's ntuser.dat file without scripting in reg.exe and loading it to the HKU hive?

Thanks!
- DF


Use EnumUsersReg.


Works like a charm. Thanks kichik.

- DF