![]() |
![]() ![]() |
Jan 16 2009, 01:15 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 15-January 09 Member No.: 44,552 |
Hi,
I would like to change the ALLUSERSPROFILE environment variable in the WinPE stage of the Windows Setup. SET ALLUSERSPROFILE="C:\Documents and Settings\All Users" from my batch file doesn't seem to work because it doesn't modify ALLUSERSPROFILE globally. (my ALLUSERSPROFILE points to All Users.WINDOWS initially because I'm doing a parallel windows installation and I would like to change it back to All Users) |
|
|
|
Jan 16 2009, 05:41 AM
Post
#2
|
|
|
Gold Member ![]() ![]() ![]() ![]() Group: Members Posts: 790 Joined: 26-July 04 From: Australia Member No.: 6,792 |
You set this in a HIVE*.INF file. This is one i use under Windows 2K, the directory names are set to match Vista (one thing vista got right was to shorten the names to allow for scripts to work. Scripts are not partial to spaces! This changes the locations of the profile directory, all users and default users on setup, and should work under Windows PE.
CODE ; HIVESFT.INF [AddReg] ; hivesft.inf HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","ProfilesDirectory",0x00020002,"%DEFAULT_PROFILES_DIR%" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","AllUsersProfile",0x00000000,"%ALL_USERS%" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","DefaultUserProfile",0x00000000,"%DEFAULT_USER%" [Strings] ; Shell Folders DEFAULT_PROFILES_DIR="%SystemDrive%\USERS" DEFAULT_USER="Default" ALL_USERS="Public" Alternately, boot into safe mode or something, and dink these registry entries. You could use tweakui and reboot. This post has been edited by Wendy: Jan 16 2009, 05:43 AM -------------------- /* rexx calculator */
numeric digits 80; parse arg chalk; interpret "cheese=" chalk ; say cheese |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 2nd September 2010 - 04:18 PM |