Solving Users' Environment Problems with the Registry

Using Registry Editor to view the contents of the Registry for a remote computer makes it easier for a system administrator to solve users' configuration problems. Select the troublesome computer using the Select Computer command in Registry Editor, and then you can browse through Registry entries to find where problems may exist.

You can also load a copy of a hive from another computer to view and change entries, as described in "Loading Hives from Another Computer" in Chapter 11, "Registry Editor and Registry Administration."

This is probably how you will use Registry Editor most often—to find the source of problems, not to edit value entries. After you find the source of a problem, Control Panel or other tools can be used to solve the problem.

For example, you can check the user's desktop settings easily by examining the values under the Console and Control Panel subkeys for the user. The Console subkeys define settings for the command prompt and other character-based applications. The Control Panel subkeys in the Registry define the appearance and behavior of items in the Windows NT desktop.

To view a user's desktop settings

  1. Focus on the user's computer by choosing the Select Computer command from the Registry menu.
  2. Under HKEY_USERS for the selected computer, select the key that represents the profile for the user who is having problems. (See "Tip" Below.)
  3. Double-click either the Console or Control Panel subkey, depending on whether the problem is with a character-based screen or a Windows NT window.
  4. Check values as described in the Help topic, "Registry Entries for User Components," in the REGENTRY.HLP file, which is included on the Resource Kit disk.

Tip

To determine which SID_# key represents which user, see the values for ProfileImagePath under the ProfileList key in the following Registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CurrentVersion

The hive filename that is the value for ProfileImagePath includes a portion of the username associated with that SID_# key, so that you can identify the user to which it belongs.

For example, suppose a user asks for help, complaining that their screen goes black whenever the icon for the command prompt is clicked in Program Manager. You can select this computer in Registry Editor, and then select the following subkey:


HKEY_USERS\SID_#\Console\Command Prompt

In this example, if the value of ScreenColors is 0, both the text and the screen background have been set to black, and this is the source of the user's problem. The user can fix this by running Command Prompt and pressing ALT+SPACEBAR to display the Control menu and choosing the Screen Colors command to select new colors.

Tip To change the colors or the bitmap that appears on the CTRL+ALT+DEL logon screen, change the entries under HKEY_USERS\.DEFAULT\Control Panel\Desktop. For example, if you want a bitmap of your company's logo on the logon screen, change the value of Wallpaper to specify the path and filename for that bitmap.

As another example, any user with sufficient access permission can use the System icon in Control Panel to change user environment variables, but the system environment variables can only be set by changing values in the Registry. Such changes to the system environment variables affect all users and can only be made in the Registry if you are logged on as a member of the Administrators group.

To change system environment variables

  1. In Registry Editor, select the Environment subkey under this Registry path:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet
    \Control\Session Manager\Environment

  2. Double-click an environment variable and change its value, as described in "The CurrentControlSet\Control Subkeys" in REGENTRY.HLP, which is included on the Resource Kit disk.
  3. Restart the system for these changes to take effect.

For example, if you want to change the path for the Microsoft OS/2 version 1.x libraries, change the value of OS2Lib under the Environment subkey to specify a new path name, such as D:\OS2\DLL.