#25389 - 2002-07-18 07:00 PM
@homeshr causing script processing to terminate
|
Gene Lawin
Lurker
Registered: 2002-07-18
Posts: 3
|
If a home directory is not defined for a user (some don't need it) when any line which references the @homeshr macro is executed the script processing terminates.
Searched the forums for an answer but didn't come up with one. Sorry if there is an obvious fix.
Tried surrounding the code with an if statement (if @homeshr) but this line also terminates the processing. Was hoping that in the event that a home directory wasn't defined for a user the @homeshr would return a null value or 0.
This only occurs on Win9x machines (I don't need it for NT/2000/XP machines) and I downloaded the most current version of kixtart (4.10) to test for problem resolution.
Thanks for your help...Gene
|
|
Top
|
|
|
|
#25391 - 2002-07-18 08:47 PM
Re: @homeshr causing script processing to terminate
|
Gene Lawin
Lurker
Registered: 2002-07-18
Posts: 3
|
Yes, rpc is installed and running at each DC (version that came with build 99)...and the dll's are available (ingroup works for example).
All kixtart files are loaded from the netlogon directory including the service running at the DC's because kxrpc.exe is installed from that directory...that makes it easy for me to keep everything in sync. I update the netlogon directory...stop and restart the kxrpc service at each DC and I've completed the upgrade process.
This was failing with an earlier version (4.0) so I upgraded to see if the 'problem' (and I don't know that it is a problem) was changed.
Ran the script in debug mode and everytime I hit the @homeshr macro (in an if statement or in a use command) the script stops processing (doesn't lock up...just skips the rest of the logon script file)
This only happens if the @homeshr should return a null value. Everything works fine if the user has a home directory assigned in AD...the @homeshr returns the correct value and the script continues executing.
Thanks again...Gene
|
|
Top
|
|
|
|
#25394 - 2002-07-18 09:55 PM
Re: @homeshr causing script processing to terminate
|
Gene Lawin
Lurker
Registered: 2002-07-18
Posts: 3
|
Not sure why...but now the if @homeshr is working (swore it wasn't before). I also tried the if exist(@homeshr) and that also worked. Actually I tried the if exist(@homeshr) first and got it to work and then went back to retest the if @homeshr and it also now works.
Only difference on machine (same machine for testing) was that when the @homeshr stopped the processing if null IE 5.0 was loaded (fresh Win98SE install). By the time I was ready to test the if exist(@homeshr) and if @homeshr I had IE 6.0 loaded.
Of course the original problem I had it still that the following command...
use s: @homeshr
terminates processing if the user doesn't have a home directory in the AD profile.
I use the if @homeshr now to work around it...for example
if @homeshr ;if exist(@homeshr) also works here use s: @homeshr endif
Fixed now...thanks for your help.
Gene
|
|
Top
|
|
|
|
#25395 - 2002-07-21 11:58 AM
Re: @homeshr causing script processing to terminate
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
That scripts can abort with impossible USE statements isn't documentating very well. To prevent abortion of your script you use always something like
code:
USE x: \\server\share IF (@error <> 0) ? "Warning KIX-MAP: error @error (@serror) ENDIF
greetings.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|