Julien TOUCHE <[EMAIL PROTECTED]> writes: > has someone some experience with script to edit registry of other users ? > > i explain: > for now, i have *.reg o to modify HKLM et HKCU for Admin. > but if i want to add some users (with Addusers for example) and change > their registry settings only on each of them or their group, how ? > HKEY_USERS\.DEFAULT is no good as i don't want same settings for all. > example: > have some settings for group admin, group users, group guest.
With local profiles, you cannot do this until after the user has logged in for the first time. This is because the user-specific registry settings are stored in the profile, and a local profile is created (by copying the Default User profile) the first time a user logs in. If the user has logged in already, or if you are using roaming profiles, you can edit the NTUSER.DAT registry hive in the profile folder. For local profiles, this is normally "C:\Documents and Settings\username". For roaming profiles, it is whatever network directory you use to hold the profiles. To edit these settings, you must first load the hive. Interactively, you would run regedt32, select Registry -> Load Hive, navigate to the NTUSER.DAT file you want, and choose where in the registry the hive should appear. (Note that NTUSER.DAT is a "hidden" file.) Then you would edit the registry and unload the hive. MS documents this here: http://www.microsoft.com/windows2000/en/server/help/load_hive_reged.htm >From a Perl script, you would use Win32::TieRegistry, call the "Load" method to load the hive, make your registry changes, and call the Unload method. We use this approach to edit the "Default User" hive in our win2ksp4-notips.pl script. Search for NTUSER.DAT in: http://cvs.sourceforge.net/viewcvs.py/unattended/unattended/install/bin/win2ksp4-notips.pl?view=markup - Pat ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info