#115897 - 2004-03-11 11:05 AM
script not running
|
kjhoskin
Fresh Scripter
Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
|
I have a strange problem with a couple of PC’s on our site, the kix script doesn’t run, it does on every other of the 250+ PC’s but not these two, very strange.
My colleague had the problem on his workstation, but as he was about to reinstall it we didn’t bother troubleshooting, I now have a laptop showing the same symptoms. Both PC’s are w2k SP4 + all latest updates, one was a DELL Precision Workstation the other a Latitude laptop. User’s login as normal but the script doesn’t run, there are no errors in the event log. The Bat file portion of the script does run as I have deleted the kix.exe file from the PC’s and that is copied across when a user next logs in and this is done by the Bat file, but the kix script doesn’t run at all.
|
|
Top
|
|
|
|
#115899 - 2004-03-11 11:45 AM
Re: script not running
|
kjhoskin
Fresh Scripter
Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
|
yep it effects all users, the laptop has the same GPO applied to it as all of our laptops, and it runs fine when run manually, grrrrrrrr its annoying
|
|
Top
|
|
|
|
#115900 - 2004-03-11 02:27 PM
Re: script not running
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Can you show us your NTLOGON.BAT? Maybe sprinkle some pause statements to the BAT file to see what is going on during the execution? Does KIX32.EXE exist in the NETLOGON share or is it in a sub-folder called programs? Or is it being executed from the workstation?
Also, this may help you too with a BAT file.
A Logon Script Does Not Work If %0 or %0\..\ Calls Multiple Commands
While it says it is for XP, it shows how to launch KiX specifically for NT,2000,9x too.
What you can also do for User Manager or Active Directory Users and Computers is the following line in place of NTLOGON.BAT - "kix32.exe yourscript.kix" (minus the quotes).
HTH,
Kent
|
|
Top
|
|
|
|
#115901 - 2004-03-11 02:35 PM
Re: script not running
|
kjhoskin
Fresh Scripter
Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
|
contents of Bat file
@Echo Off CLS XCOPY %0\..\KIX32.EXE c:\kix\2001\ /D /H /I /R /V > NUL SET KIXDIR=c:\kix\2001 %KIXDIR%\KIX32.exe logon.KIX exit
ok I'll hopefully have sometime later today or tomorrow to do a bit of troubleshooting
cheers
Kerry
|
|
Top
|
|
|
|
#115902 - 2004-03-11 02:49 PM
Re: script not running
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Kerry,
You should be able to do this -
Is it not supposed to be? Code:
@Echo Off CLS XCOPY %0\..\KIX32.EXE c:\kix\2001\ /D /H /I /R /V > NUL SET KIXDIR=c:\kix\2001 %KIXDIR%\KIX32.exe %logonserver%\netlogon\logon.KIX exit
Or rather - Code:
@Echo Off CLS COPY KIX32.EXE %systemdrive%\kix\2001\ %systemdrive%\kix\2001\KIX32.exe %logonserver%\netlogon\logon.KIX exit
This is better yet (this will pick up the KiX program and script right out of the NETLOGON share) - Code:
@Echo Off CLS call kix32.exe logon.KIX exit
HTH,
Kent
|
|
Top
|
|
|
|
#115903 - 2004-03-11 04:13 PM
Re: script not running
|
kjhoskin
Fresh Scripter
Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
|
Right something weird is going on with this laptop! I can get the script to run only if I create a GPO at the users who is trying to login OU, that contains an entry for the logon script in the users script section of the GPO (we already have this defined in top level OU and there are no block's on GPO inheritance etc), it then runs fine! If I remove that GPO the kix portion doesn’t run! VERY strange. I’ve tried taking the PC out of the domain and adding it back in but that doesn’t work either.
|
|
Top
|
|
|
|
#115904 - 2004-03-11 04:24 PM
Re: script not running
|
kjhoskin
Fresh Scripter
Registered: 2001-01-29
Posts: 47
Loc: Plymouth, Devon, UK
|
it'll also run if I add logon.bat to the logon script section of the user id's profile
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1821 anonymous users online.
|
|
|