#6717 - 2001-02-06 09:33 PM
Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
Please Help!! After I have logged on I can map the server and run the script through explorer. However at logon the script does not execute. Yes, KXRPC is installed on the server. Any Suggestions? jetsongr
|
|
Top
|
|
|
|
#6718 - 2001-02-06 09:43 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
Sorry, I neglected to mention 98 client / 2000 Server.
|
|
Top
|
|
|
|
#6720 - 2001-02-06 09:49 PM
Re: Script not executing at logon!
|
DrillSergeant
MM club member
   
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
What kind of OS is on the workstations?How do you call the script from the UserManager for domains? Does the DOS-box start? Does the system 'beep' when it tries to start the script? Do you have the script(s) replicated between all Domain Controllers? Are you trying to map the Z: drive in the script? What version of Kix do you use? Ok, the KIXRPC service is nice to have running, but you don't need it if you just want to run a script (it's only needed if you want to use certain MACRO's (like @LDOMAIN, @PRIMARYGROUP, e.d.)) ------------------ Greetz, Roger the Young ------------------------ The code is out there... ------------------------
_________________________
The Code is out there
|
|
Top
|
|
|
|
#6721 - 2001-02-06 10:05 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
What kind of OS is on the workstations? win 98 clientsHow do you call the script from the UserManager for domains? have script1.bat in logon script entry. Does the DOS-box start? no, nothing executes at logon. Does the system 'beep' when it tries to start the script? no Do you have the script(s) replicated between all Domain Controllers? this is the only server on this domain. Are you trying to map the Z: drive in the script? no What version of Kix do you use? 3.6, off win 2000 resource kit disc.
|
|
Top
|
|
|
|
#6723 - 2001-02-06 10:12 PM
Re: Script not executing at logon!
|
DrillSergeant
MM club member
   
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
Ok, what does your script1.bat look like?It should look something like this: %0\..\KIX32.EXE %0\..\LOGON.KIX Does it? (f.y.i the %0 variable represents the current path of the batch-file) ------------------ Greetz, Roger the Young ------------------------ The code is out there... ------------------------
_________________________
The Code is out there
|
|
Top
|
|
|
|
#6725 - 2001-02-07 02:19 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
script1.bat @echo off \\server\netlogon\Kix32.exe \\server\netlogon\script1.kix EXIT or @ECHO OFF %0\..\Kix32.exe %0\..\Script1.bat Exit Both have same result. Work fine when executed manually but not through logon. gr
|
|
Top
|
|
|
|
#6726 - 2001-02-07 03:17 PM
Re: Script not executing at logon!
|
DrillSergeant
MM club member
   
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
Hmmm, I'm stumped.I can't test anything for you but maybe this has something to do with the LASTDRIVE= command? (I don't even know if W98 uses this) I know that KIX tries to map the logon-share to the Z:\ drive to execute the scripts. Maybe you have a conflict there, because you're saying that the script works fine if you connect it manually. could you try this in your batchfile?: -------------------- net use Z: \\server\netlogon Z:\kix32.exe Z:\script1.kix --------------------- or play around with some other driveletters?
------------------ Greetz, Roger the Young ------------------------ The code is out there... ------------------------
_________________________
The Code is out there
|
|
Top
|
|
|
|
#6727 - 2001-02-07 04:05 PM
Re: Script not executing at logon!
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
Roger is on to something there...or is that on something ...  Anyway, Are you saying that the logon script is not running at all, not even the bat file? If the bat file is running put a pause command at the end of your batfile, and comment out the @echo off for debugging, so you can see what is going on. Also put a "net use" before the pause command. On win9x computers, normaly the z: will show up mapped to the netlogon share of a domain controller. Also, could you do this for us please. Go to a command line and type this command. net user <username> /domain | find /i "Logon script" replace <username> with the your domain username let us know what the return was. Bryce
|
|
Top
|
|
|
|
#6728 - 2001-02-07 05:24 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
bryce net user <username> /domain | find /i "Logon script" returns nothing.when i say it doesn't execute i don't believe the batch file is being executed at logon. after entering a password nothing happens except normal windows loading. i also tried changing my bat to include net use Z: \\server\netlogon Z:\kix32.exe Z:\script1.kix and this had no effect. gr
|
|
Top
|
|
|
|
#6731 - 2001-02-07 05:44 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
bryce, i ran "net user domain name /domain" and received an error "command user is unknown". i ran the entire net user domain name /domain.... again and still no error or anything. just out of curiousity, does active directory have anything effects on kixtart? gr
|
|
Top
|
|
|
|
#6732 - 2001-02-07 05:49 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
bryce, net user gregr returns all user profile info at windows 2000 server. sorry, i sent previous reply before i saw yours. gr
|
|
Top
|
|
|
|
#6734 - 2001-02-07 06:46 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
bryce, \\server\netlogon\script1.bat gr
|
|
Top
|
|
|
|
#6736 - 2001-02-07 07:08 PM
Re: Script not executing at logon!
|
jetsongr
Fresh Scripter
Registered: 2000-11-22
Posts: 18
Loc: Ann Arbor, MI
|
bryce, you da man! thanks for your help! jetsongr
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 293 anonymous users online.
|
|
|