> I'm having a little trouble here. I want the profiles stored on the > server and _not_ on the client at all. I've read the earlier postings > here about this, and got almost everything working. > > The only thing that want work is the change of the registry. >Couple of things. I just tested this and the registry is changed through the logon script. According to Louis Mandelstam...> The behaviour you're observing is due the the order in which things > happen. The user's profile is only downloaded and activated AFTER the > logon script has executed - so if you run regedit.exe in the logon > script, it does change the registry, but the changes are overwritten by > the user's profile when it's downloaded from the server afterwards. >I don't think that this is correct because the the ProfileImagePath key is stored in the HKEY_LOCAL_MACHINE hive. This is not affected by the HKEY_USER hive at all. Assuming that you have the profiles enabled on the local PC all of this should work. It may be a race condition though. The profile may be loaded before the regedit completes totally. Might want to mount the user's home directory, call the user's batch script ( if needed ), the run regedit and then mount the other drives ( maybe write a short sleep program as well ). BTW...You probably don;t need to set a USERNAME environment variable. The reason that I did this to start off with was that I initially copied the profile to the local PC and user the UseHomeDirecory key ( as specified in the Win95 RK ). Hope this helps, j- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu http://www.eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 ) ________________________________________________________________________
On Wed, 22 Oct 1997, Gerald W. Carter wrote:> > The behaviour you're observing is due the the order in which things > > happen. The user's profile is only downloaded and activated AFTER the > > logon script has executed - so if you run regedit.exe in the logon > > script, it does change the registry, but the changes are overwritten by > > the user's profile when it's downloaded from the server afterwards. > > > > I don't think that this is correct because the the ProfileImagePath key > is stored in the HKEY_LOCAL_MACHINE hive. This is not affected by the > HKEY_USER hive at all.I'm not following you. How does the above fact (which I agree with completely) negate my description of the order of logon script execution and profile loading? 1. logon script is executed as specified by remote server 2. user profile is loaded fromlocation specified by ProfileImagePath I know I do need to take a vacation, but I can't see errors in my thinking on the topic. I'm applying the concepts to my current project - so if I am missing something I'd sure love to know.>From all I've seen, the profile is not loaded before the logon script hasterminated. Regards ---------------------------------------------------------------|-----|-- Louis Mandelstam Tel +27 83 229-0712 Symphony /|\ /|\ Linux systems integration http://sr.co.za Research { } { } Johannesburg, South Africa mailto:louis@sr.co.za (Pty)Ltd {___} {___}
> Assuming that you have the profiles enabled on the local PC all of this > should work. It may be a race condition though. The profile may be > loaded before the regedit completes totally. Might want to mount the > user's home directory, call the user's batch script ( if needed ), the > run regedit and then mount the other drives ( maybe write a short sleep > program as well ).I tried to put the regedit earlier in the logonscript. See my answer to Louis.> BTW...You probably don;t need to set a USERNAME environment variable. > The reason that I did this to start off with was that I initially copied > the profile to the local PC and user the UseHomeDirecory key ( as > specified in the Win95 RK ).I noticed this too. I'd forgot to remove that line... ;-) -- Mvh Thomas Egrelius Svenska Canit AB
On Wed, 22 Oct 1997 06:56:21 +1000, you wrote:>I don't think that this is correct because the the ProfileImagePath key >is stored in the HKEY_LOCAL_MACHINE hive. This is not affected by the >HKEY_USER hive at all.That sounds about right>Assuming that you have the profiles enabled on the local PC all of this >should work. It may be a race condition though. The profile may be >loaded before the regedit completes totally. Might want to mount the >user's home directory, call the user's batch script ( if needed ), the >run regedit and then mount the other drives ( maybe write a short sleep >program as well ).Or you could just change the: regedit /s reg_file.reg to: start /wait regedit /s reg_file.reg Hope this helps --- Yours Sincerely, , () o /| | | /\ _ _ _ __ _ _ |___| __| _ / \| / |/ |/ | / \_/ |/ | | |\| | / | |/ /(__/|_/ | | |_/\__/ | |_/ | |/ \_/|/\_/|_/|__/ /| \| (Simon Hyde)