#34892 - 2003-01-07 09:33 PM
KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
Hi all,
I am trying to implement a simple login script that takes domain users and maps network drives accordingly(using the inGroup function). With Windows XP it works great but I have hit a wall with it running on a Windows 98 workstation. Just a quick rundown as far as my script goes. It was written with Kixscript editor and packaged as an EXE file. The exe file includes all .dll's and the kix32.exe (I have also tried wkix32.exe). Any help would be greatly appreciated.
Thanks
|
|
Top
|
|
|
|
#34893 - 2003-01-07 09:35 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
One last tidbit the rpc service is running on my pdc and bdc
|
|
Top
|
|
|
|
#34896 - 2003-01-08 01:33 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
Here it is:
If InGroup("Fortis") Use n: "\\imagesrvr\vol1" Use m: "\\imagesrvr\vol2"
If InGroup("Administrators") Use x: "\\roapp\data" Use y: "\\roapp\data" Use z: "\\roapp\data"
If InGroup("test") Use f: "\\roapp\data\userdata\homes
The kix version that I am using is 4.12. I know Win98 does not like deep shares butI have also tried it as \\servername\sharename with no success. When I first started I was using the batch file to call the kix script, and since I had no success with it working on win98 workstations I resorted to to exe file. I am calling this exe file from the login script in Nt 4.0 user manager, all I am doing is putting login.exe in the place of the login.bat. Also, the exe file is being replicated between my pdc and bdc with no troubble. Thank you in advance for your reply!
Jason [ 08. January 2003, 13:37: Message edited by: Jason Acord ]
|
|
Top
|
|
|
|
#34897 - 2003-01-08 01:37 PM
Re: KIxtart EXE with Windows 98
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
You are missing ENDIF's for your IF statments and Use f: "\\roapp\data\userdata\homes is missing a trailing quote.
Once these are fixed let us know your status. [ 08. January 2003, 13:37: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#34898 - 2003-01-08 01:39 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
Sorry I missed the trailing quote on the last statement, but I will try the endif and see what works.
|
|
Top
|
|
|
|
#34900 - 2003-01-08 04:28 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
The initial troubble I was having with the batch file is as follows. When the batch file was run the workstation returned the following error bla bla bla ...UNC paths are not supported Defaulting to thw current windows directory (MS Knowledge base article 156276). This occured when the batch file, login.bat was executed from the netlogin share. As far as the exe file just being a workaround, I was just trying to find something that worked.
I have tried the endif statement with no success, and if memory serves me correctly i have also tried the above script not mapping more than one share deep with no success as well.
|
|
Top
|
|
|
|
#34901 - 2003-01-08 04:32 PM
Re: KIxtart EXE with Windows 98
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Please post your current batch file and script as they are now.
|
|
Top
|
|
|
|
#34902 - 2003-01-08 04:34 PM
Re: KIxtart EXE with Windows 98
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Also note that a logon script started from a batch file can be executed in a DOS window on an NT computer but Win9x fails to proper execute the code from a DOS window in our environment. [ 08. January 2003, 16:35: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#34904 - 2003-01-08 07:25 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
Here is the batch file that i am running from the netlogon:
IF EXIST %WINDIR%\KIXTART\KIX32.EXE GOTO KIX_IS_INSTALLED
MKDIR %WINDIR%\KIXTART COPY \\roadmin1\NETLOGON\KIX32.EXE %WINDIR%\kixtart > NUL COPY \\roadmin1\NETLOGON\*.DLL %WINDIR%\kixtart > NUL copy \\roadmin1\netlogon\*.kix %windir%\kixtart >nul :KIX_IS_INSTALLED
%WINDIR%\KIXTART\KIX32.EXE LOGIN.KIX
EXIT
And now for the kix script, nice and simple (no deep mappings): If InGroup("Fortis") Use n: "\\imagesrvr\vol1" Use m: "\\imagesrvr\vol2" EndIf
If InGroup("Administrators") Use x: "\\roapp\data" Use y: "\\roapp\data" Use z: "\\roapp\data" EndIf
As usual this works great on XP but not on 98. It errors out sawing that it cannot find/locate script. Once again thanks for you help...
jason
|
|
Top
|
|
|
|
#34905 - 2003-01-08 07:29 PM
Re: KIxtart EXE with Windows 98
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Call the script like this for Win9x:
%WINDIR%\KIXTART\KIX32.EXE %0\..\LOGIN.KIX
See the KiXtart Starters Guide in the Faq & How To forum.
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000025
Also, NT only uses Kix32.exe. Win9x requires ALL the supporting DLLs. [ 08. January 2003, 19:30: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#34906 - 2003-01-08 07:31 PM
Re: KIxtart EXE with Windows 98
|
jbelew
Fresh Scripter
Registered: 2002-07-24
Posts: 23
Loc: Knoxville, TN
|
I'm kind of new to Kixtart but I have an idea. Try calling login.kix like this:
%WINDIR%\KIXTART\KIX32.EXE %WINDIR%\KIXTART\LOGIN.KIX
|
|
Top
|
|
|
|
#34909 - 2003-01-08 07:38 PM
Re: KIxtart EXE with Windows 98
|
jbelew
Fresh Scripter
Registered: 2002-07-24
Posts: 23
Loc: Knoxville, TN
|
Looking through his script, the *.kix files were copied locally, so I thought he was wanting to run the local copy.
I am running all of mine directly from NETLOGON.
Jason
|
|
Top
|
|
|
|
#34911 - 2003-01-08 08:04 PM
Re: KIxtart EXE with Windows 98
|
Jason Acord
Fresh Scripter
Registered: 2003-01-07
Posts: 8
|
Here is a revised login.bat:
IF EXIST %WINDIR%\KIXTART\KIX32.EXE GOTO KIX_IS_INSTALLED
MKDIR %WINDIR%\KIXTART COPY \\roadmin1\NETLOGON\KIX32.EXE %WINDIR%\kixtart > NUL COPY \\roadmin1\NETLOGON\*.DLL %WINDIR%\kixtart > NUL copy \\roadmin1\netlogon\*.kix %windir%\kixtart >nul :KIX_IS_INSTALLED %WINDIR%\KIXTART\KIX32.EXE %0\..\LOGIN.KIX
EXIT
This works fine on xp not still not on 98, ALTHOUGH it has gotten rid of the cannot open script message. Next question with the syntax %0\..\LOGIN.KIX, is this running the *.kix from the netlogon?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 302 anonymous users online.
|
|
|