Re: Applying registry changes to all users



Any changes made in the HKEY_CURRENT_USER hive will also be made in the
corresponding keys in HKEY_USERS\Security ID (SID) of current user subkey.
And vice versa.

The HKEY_CURRENT_USER subtree contains the user profile for the user who is
currently logged on to the computer.

The information in HKEY_CURRENT_USER is built from the HKEY_USERS key during
the logon process. Therefore, all information found in the
HKEY_CURRENT_USER key is a copy of the subkey HKEY_USERS\username, where
username is the name of the active user (or Default).

The HKEY_CURRENT_USER subtree does not contain any data. It just stores a
pointer to the content of the HKEY_USERS\Security ID (SID) of current user
subkey. Therefore, the content of that subkey also appears in
HKEY_CURRENT_USER, and it can be viewed and changed in either location. The
HKEY_CURRENT_USER subtree just provides easier access to the data.

HKEY_CURRENT_USER Contains the user profile for the user who is currently
logged on interactively (as opposed to remotely), including environment
variables, desktop settings, network connections, printers, and program
preferences. This subtree is an alias of the HKEY_USERS subtree and points
to HKEY_USERS\security ID of current user.

The HKEY_USERS subtree contains all actively loaded user profiles.
HKEY_USERS has at least three keys:

• .DEFAULT

• A subkey named for the Security Identifier (SID) of the current local
user. This subkey contains the current user's profile. The data in
HKEY_USERS\SID also appears in HKEY_CURRENT_USER.

• A subkey named for the Security Identifier (SID) of the current local
user with the _Classes suffix. This subkey contains the current user's
Classes. The data in HKEY_USERS\SID\_Classes is also contained in
HKEY_CLASSES_ROOT.

Reference:

About the Windows Registry
http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/deployguide/en-us/RegTopics.asp

Description of HKEY_CURRENT_USER Registry Subkeys
http://support.microsoft.com/default.aspx?scid=kb;en-us;310595

Registry overview
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/sag_ntregconcepts_yynh.asp

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:0933649C-3615-439C-8CBB-A1FF1C9DA2C7@xxxxxxxxxxxxx,
Matt Berry <MattBerry@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
I have a registry file that I use to setup multiple computers. I use it to
apply visual settings and to basicly setup the user account as I want it.

As an example here is one of the keys I import:

Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects
"VisualFXSetting"=dword:00000003

By default the VisualFXSetting can be found under HKEY_CURRENT_USER,
HKEY_LOCAL_MACHINE and HKEY_USERS\S-1-5-21(continues with random numbers)

Right now I can apply the reg changes to HKLM and HKCU but I don't know
how to get it to automatically detect and change the key for the HKU
since it is different on each machine. Which means instead of spending 3
seconds configuring an account I have to go through and manually
configure all of the various settings that are controlled by those keys.

I need to know how to automatically detect and change the VisualFXSetting
under the HKU key, or if there is a way to automatically find all
instances of "VisualFXSetting" and have them all changed to the same
setting.

.



Relevant Pages

  • Re: What relative identifier ends with 1003 & 1003_Classes
    ... corresponding keys in HKEY_USERS\Security ID (SID) of current user subkey. ... The HKEY_CURRENT_USER subtree does not contain any data. ... A subkey named for the Security Identifier of the current local ...
    (microsoft.public.windowsxp.general)
  • Re: Capturing document extension
    ... In HKEY_CLASSES_ROOT my installer installs keys ... Author MOZART the music processor for Windows - ... If it finds an OpenWith subkey, ... the Image perceived type includes files of ...
    (microsoft.public.vc.mfc)
  • Re: Setup write registry
    ... You need admin privs to call these APIs. ... Creating the keys ... Please do not send e-mail directly to this alias. ... > I also need to create "Values" under newly created subkey. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Re: Restoring a "do not ask me again" pop up box
    ... corresponding keys in HKEY_USERS\Security ID (SID) of current user subkey. ... The HKEY_CURRENT_USER subtree does not contain any data. ... HKEY_USERS has at least three keys: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Searching the Uninstall with RegRead
    ... > Is it possible to get all the keys in ... > remove programs list) put them into and array and then search the array ... Dim oReg, SubKey, arrSubKeys, strKeyPath, wDisp ...
    (microsoft.public.scripting.vbscript)