Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default directory based on user
Message
De
27/11/1999 00:36:08
 
 
À
26/11/1999 23:53:57
Information générale
Forum:
Microsoft Office
Catégorie:
Word
Divers
Thread ID:
00295710
Message ID:
00295916
Vues:
33
>Ed,
>
>Is the roaming hive activity what would happen adding policies for a user or group with the System Policy Editor?
>

A "roaming hive" is a set of registry keys that follow the user from system to system, rather than being based on local system settings. You can use the SPE to implement much of this behavior, but a registry hive inherited by the user login (it's actually a piece of the registry saved as a file that merges at login and is preserved to a common store when discoonected). In essense what you've done is associated sections of the registry with the login without explicitly defining user settings as policies. The following is an extract from the "Best Practices" section of the MSDN:

Store essential user settings that must move with the individual in the user’s profile

Benefits

Better user experience!

Allows your application to roam

Allows your application to run properly in secure environments

Description
Users that have to use your application on multiple machines don't want to lose valuable time getting things the way they like and are accustomed to, each and every time they log in somewhere else! If a user takes the time to configure your application beyond the default settings, then your application should take the time to make sure those settings are available to the user wherever he or she may roam on the network.

Settings that your program uses on a per-user basis should be placed in HKEY_CURRENT_USER. For example, a mail client would store server name, user-id etc.

A good rule of thumb for registry usage is to not exceed 100k. If you have a lot of settings then consider only storing the mission critical ones. For example, while nice to have, your program will run just fine if Window sizes and positions don’t roam. But if you don’t roam the name of the mail server then you could have real problems!

If you have more than 100k of settings, use a settings file. If you don’t need your settings file to roam, put it in CSIDL_LOCAL_APPDATA. If you want to roam then put the settings file in CSIDL_APP_DATA.

Considerations
Try to decide what needs to roam. If you have lots of data, 100k or more, then just roam the important stuff.

Be aware of the tradeoffs involved with using settings files vs. using the registry.

When calculating size of combined settings, don’t include settings stored elsewhere like HKEY_LOCAL_MACHINE, HKEY_CURRENT_CONFIG or policy settings.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform