Page 1 of 2 12>
Topic Options
#34892 - 2003-01-07 09:33 PM KIxtart EXE with Windows 98
Jason Acord Offline
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 Offline
Fresh Scripter

Registered: 2003-01-07
Posts: 8
One last tidbit the rpc service is running on my pdc and bdc
Top
#34894 - 2003-01-07 10:52 PM Re: KIxtart EXE with Windows 98
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Jason,

welcome on board...

a few Qs:

1. Can / will you post the script?
2. What's the KiX version?
3. How / when is the exe being executed?
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#34895 - 2003-01-07 11:10 PM Re: KIxtart EXE with Windows 98
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If you are trying to map deep shares like:

\\server\share\subdirectory\

then Win9x clients do not like this. In particular, the default pseudo shares created by the user manager can not attach to Win9x clients.
_________________________
Jack

Top
#34896 - 2003-01-08 01:33 PM Re: KIxtart EXE with Windows 98
Jason Acord Offline
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 Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#34898 - 2003-01-08 01:39 PM Re: KIxtart EXE with Windows 98
Jason Acord Offline
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
#34899 - 2003-01-08 04:11 PM Re: KIxtart EXE with Windows 98
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Win9x will absolutely not map a deep share like your current f mapping.

Make the subdirectory "\\roapp\data\userdata\homes" a share.

Presumably this didn't work before because of secondary errors in the script.

Also, you say, that kix would not run from a bat file. This is the standard/recommended procedure with Win98 clients. If this isn't working there must have been mis-matched DLLs or maybe there was a problem with path resolution or your replication or something like that. I suspect your solution of using an exe did not fix the underlying problem instead it went around it. I recommend going back to using a bat file & resolving why this wasn't working.

[ 08. January 2003, 16:19: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#34900 - 2003-01-08 04:28 PM Re: KIxtart EXE with Windows 98
Jason Acord Offline
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 Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please post your current batch file and script as they are now.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#34902 - 2003-01-08 04:34 PM Re: KIxtart EXE with Windows 98
Howard Bullock Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#34903 - 2003-01-08 04:41 PM Re: KIxtart EXE with Windows 98
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I recommend envoking the bat file exactly as recommended in the manual but this topic has been discussed frequently in this forum try doing a search of the forum.

Also, check out our KixTart FAQ. It has loads of useful info.For starters try this FAQ.

Starter FAQ

Here are a few older discussions that might help.

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=006291#000009

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=006266#000000

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=006164#000001

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=1;t=006126#000008

[ 08. January 2003, 16:55: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#34904 - 2003-01-08 07:25 PM Re: KIxtart EXE with Windows 98
Jason Acord Offline
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 Offline
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 ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#34906 - 2003-01-08 07:31 PM Re: KIxtart EXE with Windows 98
jbelew Offline
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
#34907 - 2003-01-08 07:31 PM Re: KIxtart EXE with Windows 98
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You're calling the script incorrectly. Please read the KiXtart Manual for correct syntax or take a look at LOGON.BAT (the overkill version)
_________________________
There are two types of vessels, submarines and targets.

Top
#34908 - 2003-01-08 07:34 PM Re: KIxtart EXE with Windows 98
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Jbelev: This will only work if the login.kix script is in the %WINDIR% directory. Normally, the script and the supporting executables/DLLs are on the NETLOGON share. The issue is that Windows 9x requires %0\..\ in order to load the script from the NETLOGON share. Using %WINDIR% will also create permissions problems when updating the script.

The logon.bat link posted above will take care of all those thinsg and works under Windows 9x/ME/NT/2000/XP/.NET
_________________________
There are two types of vessels, submarines and targets.

Top
#34909 - 2003-01-08 07:38 PM Re: KIxtart EXE with Windows 98
jbelew Offline
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
#34910 - 2003-01-08 07:40 PM Re: KIxtart EXE with Windows 98
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Some do run the binaries locally but most run the script from NetLogon. There may be permission issues with placing the binaries local.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#34911 - 2003-01-08 08:04 PM Re: KIxtart EXE with Windows 98
Jason Acord Offline
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
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.1 seconds in which 0.069 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org