#13674 - 2001-10-30 12:45 AM
Cannot execute kix32
|
Anonymous
Anonymous
Unregistered
|
Hi allSome of my colleagues are having a problem running our newest kix script. Our netware server has been replaced with a Win2000 box running a kix login script to map drives. The novell client has been removed along with all registry entries. When certain people login the script just doesn't run & no log file is created. When we try to run the kix32 manually within a dos box we get the error "cannot execute kix32". We've tried increasing permissions & copying the kix32 files & dlls across to the local machine with no success. Short of a reinstall of the os we can't see any other solution - can anyone help?
|
Top
|
|
|
|
#13676 - 2001-10-30 10:39 AM
Re: Cannot execute kix32
|
Anonymous
Anonymous
Unregistered
|
OK, here goes... - how did you call kixatrt IT RUNS FROM THE SERVER CALLED BY A BATCHFILE IN THE USER PROFILE - THE SAME AS ALL OUR OTHER SERVERS - does this problem exist for all users? did you verify it with your administrator account? NO, ONLY A SELECT FEW - I'VE GIVEN THE PROBLEM USERS DOMAIN ADMIN RIGHTS & IT MADE NO DIFFERENCE - where are the kixtart files located ON THE DC SERVERS IN THE NETLOGON DIRECTORY - where is your script located SAME - which kixtart version running 3.63 - how is your client/server configutarion? mix from w9x/me/nt/w2k/netware? NOT QUITE SURE WHAT YOU MEAN... REGARDS OSs WE'VE THE WHOLE LOT - WIN 95 THRU TO W2K WITH EVERYTHING INBETWEEN, INCLUDING CITRIX METAFRAME & WINFRAME - can you put your logon batch file on the board? SEE BELOW - IT'S VERY STRAIGHTFORWARD ;Version 2.1 26/10/2001 redirectoutput("c:\logfile.txt",1) ? "Welcome, @userid" ; :checkadmin ; if ingroup("Administrators") or ingroup("Domain Admins") ? "You are using an admin login, do not run this script with an admin login" ? "The script will now exit and stop processing" ? ? ; goto finish ; endif ; ; ; ;Set variables and map drives for users ; :setupdrives gosub setvariables gosub mapdrives ; exit ; :setvariables ; ; $domain = @DOMAIN ; $dataserv = "infotech" ; ; $datapath = "\\" + $dataserv + "\" $printserv = $datapath ; return ; ; :mapdrives ; ; $total = len(@PRIMARYGROUP) $off = instr(@PRIMARYGROUP,"_") $length = $total - $off $group= substr(@PRIMARYGROUP,$off + 1,$length) ; $groupshr = $datapath + $group $Appsshr = $datapath + "apps" $publicshr = $datapath + "general" ; ;?"home shr is @HOMESHR"? ;?"group shr is $groupshr"? ;?"public shr is $publicshr"? ; use h: "@homeshr" if @ERROR = 0 ?"h: is @homeshr"? else ?"error is @ERROR for @homeshr"? endif ; use t: "$groupshr" if @ERROR = 0 ?"t: is $groupshr"? else ?"error is @ERROR for $groupshr"? endif ; use s: "$publicshr" if @ERROR = 0 ?"p: is $publicshr"? else ?"error is @ERROR for $publicshr"? endif ; if ingroup ("it_apps") use R: "$appsshr" if @ERROR = 0 ?"R: is $appsshr"? else ?"error is @ERROR for $appsshr"? endif endif return ; ;--------------------------------------------------------------------------- :finish exit WE USE SIMILAR SCRIPTS IN OTHER DEPTS BUT HAVE NEVER COME ACROSS THIS PROBLEM BEFORE... THANKS FOR ANY SOLUTION YOU CAN COME UP WITH... GILL
|
Top
|
|
|
|
#13677 - 2001-10-30 09:53 PM
Re: Cannot execute kix32
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,Some suggestions to your code
- change f.e. Ingroup("Administrators" to (Ingroup("Administrators") <> 0)
- you are using RedirectOutput. Use f.e. MessageBox to verify your script.
We introduce the $info variable. First statement will also a MessageBox call.
- we move your $groupshr and @homeshr to the end. First we set the mappings
$publicshr and $appsshr.
code:
;Version 2.1 26/10/2001 CLS IF (MessageBox("Logon script started","Kixtart Info",0,300) <> 0) ENDIF ;RedirectOutput("c:\logfile.txt",1) ? "Welcome, @userid" ; $info="" $crlf=CHR(13)+CHR(10) :checkadmin ; IF (Ingroup("Administrators") <> 0) OR (Ingroup("Domain Admins") <> 0) ? "You are using an admin login, do not run this script with an admin login" ? "The script will now exit and stop processing" ? $info=$info+"Admin group: skip script" GOTO finish ENDIF ; ;Set variables and map drives for users ; :setupdrives GOSUB setvariables GOSUB mapdrives IF (MessageBox($info,"Kixtart Info",0,300) <> 0) ENDIF EXIT:setvariables $domain = @domain $dataserv = "infotech" $datapath = "\\" + $dataserv + "\" $printserv = $datapath ; $info=$info+"domain = "+@domain+$crlf $info=$info+"datapath = "+$datapath+$crlf RETURN :mapdrives $total = Len(@primarygroup) $off = Instr(@primarygroup,"_") $length = $total - $off $group= Substr(@primarygroup,$off + 1,$length) ; $groupshr = $datapath + $group $appsshr = $datapath + "apps" $publicshr = $datapath + "general" ; ? "home shr is @homeshr" ? "group shr is $groupshr" ? "public shr is $publicshr" ; $info=$info+"pr.group = "+@primarygroup+$crlf $info=$info+"home = "+@homeshr+$crlf $info=$info+"appsshr = "+$appsshr+$crlf $info=$info+"publicshr = "+$publicshr+$crlf ; USE s: "$publicshr" IF @error = 0 ? "p: is $publicshr" $info=$info+"publicshr = mapped"+$crlf ELSE ? "error is @error for $publicshr" $info=$info+"publicshr = map error @error (@serror)"+$crlf ENDIF ; IF (Ingroup ("it_apps") <> 0) USE r: "$appsshr" IF @error = 0 ? "r: is $appsshr" $info=$info+"appsshr = mapped"+$crlf ELSE ? "error is @ERROR for $appsshr" $info=$info+"appsshr = map error @error (@serror)"+$crlf ENDIF ENDIF ; IF (len(@homeshr) <> 0) USE h: "@homeshr" IF (@error = 0) ? "h: is @homeshr" $info=$info+"home = mapped"+$crlf ELSE ? "error is @error for @homeshr" $info=$info+"home = map error @error (@serror)"+$crlf ENDIF ELSE ? "no h: for @homeshr" $info=$info+"home = no mapping"+$crlf ENDIF ; USE t: "$groupshr" IF @error = 0 ? "t: is $groupshr" $info=$info+"groupshr = mapped"+$crlf ELSE ? "error is @error for $groupshr" $info=$info+"groupshr = map error @error (@serror)"+$crlf ENDIF RETURN ;--------------------------------------------------------------------------- :finish IF (MessageBox($info,"Kixtart Info",0,300) <> 0) ENDIF EXIT
Please let us know your result. Please put also your logon batch file on the board. Your error cannot execute kix32 isn't a kixtart problem, but possible a permission problem. Verify your rights to your netlogon directory. In your first entry you talk about the migration from netware to windows 2000. Did your organisation also make those changes to other departments? greetings.
|
Top
|
|
|
|
#13678 - 2001-11-01 01:36 PM
Re: Cannot execute kix32
|
Anonymous
Anonymous
Unregistered
|
Neat script! Using this I've managed to figure out that the problems lie with the pcs, not the script... Many thanks for your help... Gill
|
Top
|
|
|
|
#13679 - 2004-03-12 08:33 AM
Re: Cannot execute kix32
|
sgtan
Fresh Scripter
Registered: 2004-02-17
Posts: 20
|
Hello Gill,
I may have a similar problem that I've just posted in the forum. I am unable to execute kix32.exe manually from any directory location though I've had the file copied.
Can you let me know what was the solution to your problem? I'm sure my issue is not a script issue as all other clients or servers are running the batch file without any problem. The system with kix32.exe is a NT4 server sp6a.
Any advise?
Thanks.
SGTan
|
Top
|
|
|
|
#13681 - 2004-03-12 09:21 AM
Re: Cannot execute kix32
|
sgtan
Fresh Scripter
Registered: 2004-02-17
Posts: 20
|
Sorry, I'm new to this. My first time posting a message to the forum. I thought Gill could help since there's no solution provided though the issue is resolved.
|
Top
|
|
|
|
#13683 - 2004-03-12 08:45 PM
Re: Cannot execute kix32
|
Bryce
KiX Supporter
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
Quote:
Start your own topic...
ABC's of KiXtart board etiquette and message to new forum users
Btw. Gill isn't a frequent poster... I think you have to wait a very long time before he shall answer your question...
bb-top25
yeah but constant replys of "read the FAQ" really be ALL that helpful?
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|