PRB w/ system variables in registry

G

Guest

I am having trouble using the system environment variables %Systemdrive% and %Windir% in the registry. Specifically, using the variables in the userinit value under the HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon key. The environment variables are defined (used the set command to verify) but do not work. The target has 4 partitions. The system boot files are on drive c: (partition 1) and the windows system files are located on drive f: (partition 4). AutoAdminLogon is set to 1. Replacing the F:\windows\system32\userinit.exe with %windir%\system32\userinit.exe results in the system going into an endless cycle of loading personal settings then logging off without getting to the desktop. Only using a fixed path seems to work. Why?
 
K

KM

Tony,

I have seen the problem. You can easy repro it on XP Pro machine (therefore,
it will unlikely work on XPe).
My guess was that Winlogon does not expand system variables.

KM
I am having trouble using the system environment variables %Systemdrive%
and %Windir% in the registry. Specifically, using the variables in the
userinit value under the HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon key. The environment variables are defined (used
the set command to verify) but do not work. The target has 4 partitions.
The system boot files are on drive c: (partition 1) and the windows system
files are located on drive f: (partition 4). AutoAdminLogon is set to 1.
Replacing the F:\windows\system32\userinit.exe with
%windir%\system32\userinit.exe results in the system going into an endless
cycle of loading personal settings then logging off without getting to the
desktop. Only using a fixed path seems to work. Why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top