Page 1 of 1 1
Topic Options
#34550 - 2002-12-19 03:57 PM 2000 servers, 95/98 clients no mappings
samd Offline
Fresh Scripter

Registered: 2002-12-03
Posts: 19
I am kinda new to this and think I am missing something. I have downloaded the latest version of Kixtart and copied the kix32.exe, kx16.dll and kx32.dll to the scripts folder on a 2000 server. When I browse to the netlogon share I see them. I have a file called 2000.bat that calls the kix32.exe and I have a script (kixtart.kix) with some mappings. I have entered the bat file name to the accounts profile tab within active directory also (under logon script). When I log on to a 2000 workstation the script runs fine but when I log on to a 95/98 client it shows the kix script screens but no mappings occur. I have the ds client loaded on the workstations too. The user account resides in an OU and not the default users folder if that makes a difference. Any ideas on what to try next??? I'm stumped.
Top
#34551 - 2002-12-19 04:03 PM Re: 2000 servers, 95/98 clients no mappings
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please read the KiXtart Manual and the FAQ Forum, especially Kixtart Starter's Guide and KXRPC - Everything you wanted to know about KXRPC

then start with a simle script with just one mapping and some error checking before going towards more complicated scripts.
code:
$drive='g:'
$unc='\\server\share'
use $drive /delete /persistent
use $drive $unc
? 'Error '+@ERROR+' - '+@SERROR

and read up on DEBUG ON.
_________________________
There are two types of vessels, submarines and targets.

Top
#34552 - 2002-12-19 04:03 PM Re: 2000 servers, 95/98 clients no mappings
samd Offline
Fresh Scripter

Registered: 2002-12-03
Posts: 19
Figured I would add the bat file and script syntax:
________________
2000.bat

@ECHO OFF
%0\..\Kix32.exe
________________________

kixtart.kix -

Break off
Cls

;--------------->Assign variables for servers and shares

$x="$$"
$u="@userid"
$hs1="\\haley_serv1\"
$hs2="\\haley_serv2\"
$pn1="\\pns_serv1\"
$pn2="\\pns_serv2\"
$APR="APR"
$AR4="AR4"
$MMS="mms2000"
$Tea="Teachers"

;---------------> Migrating Users
select
case $u="robbinss"
$Home=$hs1+$u+$$
$mmsm=$hs1+$mms+$$
case 1

;----------------> If at Port Norris variables
if instr(EnumIpInfo(0,0),"172.26.")

$Home=$pn1+$u+$$
$mmsm=$pn1+$mms+$$
$teach=$pn1+$Tea+$$

;----------------> If at Haleyville variables
Else
$Home=$hs1+$u+$$
$mmsm=$hs1+$mms+$$
$teach=$hs1+$Tea+$$

Endif
endselect

;----------------> Map Home Drive
use H: $HOME

;----------------> Common Mappings
; Use T: $teach

;----------------> Group Mappings

;--> Haley MMS2000
if ingroup("mms2000")
Use m: $mmsm
Endif

;--> Haley AR Reader
if ingroup("AR4")
Use R: $AR4
Endif

;--> PNS APR Group
if ingroup("APR")
Use R: $APR
Endif

sleep 5
cookie1

Top
#34553 - 2002-12-19 04:05 PM Re: 2000 servers, 95/98 clients no mappings
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The batch file does not contain a call to the actual script. Please read the things mentioned above.
code:
%0\..\kix32 %0\..\kixtart.kix

_________________________
There are two types of vessels, submarines and targets.

Top
#34554 - 2002-12-19 05:15 PM Re: 2000 servers, 95/98 clients no mappings
samd Offline
Fresh Scripter

Registered: 2002-12-03
Posts: 19
Ok I'm getting closer. I have modified the bat file and made some other changes. Now when the script runs I get the InGroup mappings but nothing else. Does anyone know of a good place for beginners on using debug? Also do I need a kixtart.ini file?? How do you know if you need it??I looked at the debug section but it is a little beyond me. Thanks again for everything!!!

[ 19. December 2002, 17:17: Message edited by: samd ]

Top
#34555 - 2002-12-19 05:51 PM Re: 2000 servers, 95/98 clients no mappings
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
DEBUG ON in the first line of your KiXtart script will allow you to step through the script line by line. You can then evaluate the contents fo variables for example. You should also place @ERROR checks liberally throughout your code. Finally, take advantage of prepackaged UDFs which you can find in the UDF Forum.

You can also post your script in the 'Scripts' forum if you require debugging help.

[ 19. December 2002, 17:51: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#34556 - 2002-12-19 06:07 PM Re: 2000 servers, 95/98 clients no mappings
samd Offline
Fresh Scripter

Registered: 2002-12-03
Posts: 19
I did figure out how to run the script in debug (kix32 kixtart.kix /d) and when I do using the f8 key everything actually works, it just does not map during logon. I am thinking a timing issue may be occurring. I am looking into the @error commands now, they are new to me. I will keep others posted with what I find out. Thanks again
Top
Page 1 of 1 1


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

Who's Online
0 registered and 823 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.056 seconds in which 0.026 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