
Windows 98 Professional Reference


- 8 -
User Profiles
User Profiles in Windows 98 let users retain their personal settings when they
share a computer with others or when they use other computers on the same network.
User Profiles store the following user-specific information:
- Control Panel settings
- User-specific Registry settings
- Start menu's Programs folder
- Start menu's Recent folder
- Desktop configuration, including files and shortcuts
- Persistent network connections
At the simplest level, you can enable User Profiles on a stand-alone computer
so that multiple users can log on and receive their own settings from one session
to the next. A home computer, for instance, can store User Profiles for each family
member. (This can avert a lot of family squabbling on a shared computer!)
With certain networks (Windows NT and NetWare), a copy of each person's User Profile
information can also be stored on the network server. When you enable this capability,
each person receives his own personal settings when he logs on to any computer on
the network. When he logs off, any changes he made are automatically saved back to
the server to be used at the next computer at which they log on. These network-based
profiles are called Roving User Profiles.
NOTE: Microsoft interchangeably uses the terms "Roving User
Profiles" and "Roaming User Profiles." They both refer to the same
thing.
Finally, you can create a class of User Profiles called Mandatory User Profiles.
When you do this, each person that you define to use them has a complete set of User
Profile settings applied to any computer from which he logs on. Although the user
can make changes once logged on (assuming any System Policy setting allows him the
ability to do so), those changes are not saved and the system reverts to the Mandatory
User Profile settings the next time he logs on from any computer.
The following list gives you specific advice for when to implement these different
types of profiles:
- Local Profiles--Use Local Profiles when you are setting up a computer
that more than one person will use, and where you care only about keeping any Windows
98 settings made by the users local to that machine. You can use local profiles on
both stand-alone and networked desktop computers.
- Roving User Profiles--Use Roving User Profiles when you want a user's
personal Windows 98 settings to follow her around the network. Implementing Roving
User Profiles does mean that you must set up each computer that will allow the use
of Roving User Profiles. One way to think about Roving User Profiles is like this:
They're simply local User Profiles (kept on every computer that a user logs on to)
that save a copy of their settings on a network server, where they are available
should a user log on to another participating Windows 98 computer on the network.
- Mandatory User Profiles--If you're in a situation where a number of users
must all have the same Windows 98 settings, all the time, every time, then use Mandatory
User Profiles to keep each user's desktop environment consistent.
System Policies or Mandatory User Profiles?
There is no need to use both Mandatory User Profiles and System Policies. Either
one of these tools provides you with the same abilities to restrict or force user-specific
settings, although System Policies additionally enable you to affect system settings.
You use Mandatory User Profiles when you want each user (you can choose which users)
that logs on to a network to always receive exactly the same settings. This might
be appropriate, for instance, for a customer service department where each user has
exactly the same needs as the other users. Mandatory User Profiles can ease the training
and support burdens in such an environment. Mandatory User Profiles affect settings
only in the USER.DAT component of the Registry, and not SYSTEM.DAT. You use System
Policies when you want users to be able to make some personal settings that can be
accessed elsewhere on the network (or between sessions on the same computer). You
also use System Policies when you need to enforce computer settings stored in SYSTEM.DAT,
like various network policies you can implement. System Policies are applied on top
of User Profile settings and can override them. System Policies are more powerful
than Mandatory User Profiles because they can affect settings in the complete Registry:
both USER.DAT and SYSTEM.DAT.
Both approaches are appropriate in different circumstances. Mandatory User Profiles
are much easier to set up and maintain, as long as you can realistically apply a
single set of user settings for each user. System Policies, however, give you more
flexibility at the cost of greater complexity.
Understanding User Profile Files
When User Profiles are enabled, a set of directories and files is created for
each user that logs on to the computer. These user-specific directories and files
are stored in the \Windows\Profiles directory, and each user has a subdirectory that
corresponds to his logon name. For instance, Figure 8.1 shows a computer's \Windows\Profiles
directory with four User Profiles defined: Bruce, Christy, Deborah, and Joe. The
profile directory for user Bruce has been expanded so you can see its contents.
TIP: You can see what profiles have been created on a particular
machine in two ways: by looking in the \Windows\Profiles directory or by checking
the contents of the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ Current Version\ProfileList
Registry key.
Figure 8.1
An example of a \Windows\Profiles directory structure.
Each user's profile directory contains (at most) the following:
- The user's own personal USER.DAT (which contains the user-based Registry settings)
- A \Desktop subdirectory that holds the configuration of the user's desktop
- An \Application Data subdirectory (if needed by any installed applications) that
contains the user's own personal application settings
- A \Cookies subdirectory that holds the user's own personal Web cookies
- A \Favorites subdirectory that holds the user's personal Internet Explorer favorite
places
- A \History subdirectory that holds a list of Web sites that the user has visited
- A \My Documents subdirectory, holding the contents of the user's My Documents
folder that appears on the desktop
- A \NetHood subdirectory, which contains any special contents of the user's Network
Neighborhood folder
- A \Recent subdirectory, containing shortcuts to the user's 10 most recently opened
files
- A \Start menu subdirectory holding the contents of the user's Start menu, and
possibly a subdirectory with the user's Programs folder contents
- A \Temporary Internet Files subdirectory, holding the user's cached Internet
Explorer files
The preceding files and directories, in total, make up a single User Profile.
Enabling User Profiles
You enable User Profiles by using the Passwords Control Panel object. After opening
Passwords, move to the User Profiles tab, shown in Figure 8.2.
Figure 8.2
You enable User Profiles through the Passwords Control Panel.
Select Users Can Customize Their Preferences and Desktop Settings.
Windows switches to your personal settings when you log on to enable User Profiles.
You can then choose with the appropriate checkboxes whether desktop shortcuts and
Network Neighborhood contents, or the Start menu and Program groups are stored along
with the User Profiles. Selecting these other options creates the matching folders
and contents in each user's \Windows\Profiles directory.
Managing Roving User Profiles
Roving User Profiles are automatically enabled in the following circumstances:
- User Profiles are enabled on the client computer.
- The Windows 98 computer uses a 32-bit networking client for NetWare or Windows
NT networks (such as the ones included with Windows 98).
- Every Windows 98 computer that accesses Roving User Profiles has Windows 98 installed
on the same drive and directory (such as C:\Windows).
- One of those valid network clients is selected as the Primary Network Logon client.
(Open the Network Control Panel and choose the client in the Primary Network Logon
drop-box.)
- Under Windows NT, the user has a valid home directory defined.
- Under NetWare, the user has a valid MAIL directory (it should be created automatically
when the user account is created). If the user has the Novell NDS service installed
in addition to the client, her profile files are stored in her home directory instead.
When all of the preceding circumstances are true, each user's User Profile directories
and files are copied to either her Windows NT home directory or her NetWare MAIL
directory when she logs off the network. When the user logs on from another computer,
the profile information is accessed from the network location.
NOTE: When a user logs off after using a Roving User Profile, both
the local copy in \Windows\Profiles and her network copy is updated with any changes
she made during that session.
You can have User Profiles and yet not have them be Roaming Policies. Using Registry
Editor, select the Registry key HKEY_LOCAL\MACHINE\Network\Logon and add a
DWORD value named UseHomeDirectory.
NOTE: Roving User Profiles are not shared between Windows 98 and
Windows NT clients.
What if you want to use Roving User Profiles, but aren't using a networking client
that supports them? You can still set up Roving Profiles in this scenario by following
these steps:
- 1. Create a read-only network directory to which all users have access.
- 2. Create a read-only file in the directory called PROFILES.TXT.
- 3. In the PROFILES.TXT file, place the following information:
- A [Profiles] heading
- A list of all users with profiles, in which each user's logon name is listed,
followed by an equal sign (=), followed by her home directory specified by a Universal
Naming Convention name. An example would be Christy=\\SERVER\ HOMEDIRS\Christy.
- 4. On each computer, use Registry Editor to locate the key HKEY_LOCAL_MACHINE\
Network\Logon.
- 5. Create a string value named SharedProfileList and set the string value
to be the full pathname of the PROFILES.TXT file you created in step 2--for example,
\\SERVER\ EVERYONE\PROFILES.TXT.
After following the preceding steps, Roving User Profiles will work for each user
defined in the PROFILES.TXT file (provided each computer has the necessary settings).
Creating Mandatory User Profiles
Mandatory User Profiles can be used when you want to force a particular set of
User Profile settings on a user or group of users (or all users, for that matter)
over a network. Mandatory User Profiles let you create a complete User Profile, and
then force those settings on select users.
Creating Mandatory User Profiles is quite easy; just follow these steps:
- 1. On a Windows 98 computer that has User Profiles enabled, log on to the network
using a new user name. This creates the new User Profile files in the \Windows\Profiles
directory. For this example, say you create a user called NEWUSER.
- 2. Modify the user settings as needed, so that the Windows 98 environment is
exactly as you want it to be for everyone that will use the Mandatory User Profile.
This could include adding or removing Start menu items, changing Control Panel settings,
mapping persistent network shares, changing the Registry directly, and so forth.
Make sure to test all aspects of the environment you create!
- 3. Log off the computer using the Log Off command in the Start menu. This saves
the changes you made in step 2 to the \Windows\Profiles\Newuser directory.
- 4. Log back on as Administrator.
- 5. Copy the entire contents of \Windows\Profiles\Newuser to the network profile
location for a target user. Under Windows NT, this is her home directory. Under NetWare,
this is her MAIL directory, or her home directory if she is using the NDS service.
- 6. In the target user's profile directory, rename the USER.DAT file to USER.MAN.
After following these steps, try logging on as the target user (or work with the
target user to test these updates). After you're happy with how the Mandatory User
Profile is working, you can copy the files to other user home directories as needed.
Common Problems and Solutions
When you use User Profiles, there are a few common complaints you might receive
from your users:
- "I went to another computer to use it, and I added a program shortcut there
(or made some other change), but when I logged back on to my own computer the next
morning the shortcut had vanished! And it's also missing from the computer where
I added it!"
- This is common when you have shared computers with resources (like scanners)
that users may use from time to time in addition to their main desktop computer.
What's happening here is the following:
- 1. User logs on to his main computer, Computer #1
- 2. While logged on to Computer #1, the user logs on to Computer #2. As you would
expect, he gets all of his Roving User Profiles from the network when he logs on.
- 3. The user makes some change to his configuration on Computer #2, such as adding
a program shortcut or changing their wallpaper.
- 4. The user logs off from Computer #2. His User Profile changes are stored on
the network.
- 5. Later that day, when the user logs off from Computer #1, his User Profile
settings on Computer #1 replace the ones stored by Computer #2.
- 6. The next morning, the user gets his Roving User Profile settings that were
saved from Computer #1, and wonders what happened to the change he made on Computer
#2. And of course, this happens no matter which computer he logs on to.
- In this scenario, you simply explain to the user how their settings are stored
on the network, and how using two computers simultaneously can cause this behavior.
Nothing is actually amiss in this scenario. The user can solve it this problem himself
by logging off their main computer before using other computers.
- "I installed a program on a computer for everyone to use, but no other users
can see it when they log on."
- One of the settings on the User Profiles tab of the Passwords Control Panel is
responsible for this. If the checkbox called Include Start Menu and
Program Groups in User Settings is enabled, each user has his own private Start menu.
Any changes he makes to his Start menu, such as the shortcuts added when an application
is installed, are private to that user.
- There are a few solutions to this complaint. First, you can turn off the Include
Start Menu setting, which means that all users of that computer share
a common Start menu. Second, you can show the other users how to create shortcuts
to the main program file for their own desktops. (This second alternative may not
work properly if the application also depends on user-specific settings in the Registry).
Conclusion
In this chapter you learned how User Profiles work in Windows 98 and how to enable
them. You also learned about Roving User Profiles and Mandatory User Profiles, what
each is for, and how to work with them.
Chapter 9, "Hardware Profiles," shows you how Windows 98 can accommodate
shifting configurations on a single computer, such as what happens to a portable
computer with a docking station, or a desktop computer that only periodically connects
to a device like a scanner.


© Copyright, Macmillan Computer Publishing. All
rights reserved.