|
Cannot execute kix32
|
|
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?
|
MCA
|
(KiX Supporter)
|
2001-10-30 01:06 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
Dear,Some questions: - how did you call kixatrt - does this problem exist for all users? did you verify it with your administrator account? - where are the kixtart files located - where is your script located - which kixtart version running - how is your client/server configutarion? mix from w9x/me/nt/w2k/netware? - can you put your logon batch file on the board? greetings.
|
|
Re: Cannot execute kix32
|
|
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
|
MCA
|
(KiX Supporter)
|
2001-10-30 09:53 PM
|
|
|
|
|
Re: Cannot execute kix32
|
|
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.
|
|
Re: Cannot execute kix32
|
|
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
|
sgtan
|
(Fresh Scripter)
|
2004-03-12 08:33 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
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
|
Lonkero
|
(KiX Master Guru)
|
2004-03-12 08:50 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
please don't poke and dredge old threads.
|
sgtan
|
(Fresh Scripter)
|
2004-03-12 09:21 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
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.
|
Co
|
(MM club member)
|
2004-03-12 01:32 PM
|
|
|
|
|
Re: Cannot execute kix32
|
|
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
|
Bryce
|
(KiX Supporter)
|
2004-03-12 08:45 PM
|
|
|
|
|
Re: Cannot execute kix32
|
|
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?
|
Co
|
(MM club member)
|
2004-03-12 09:09 PM
|
|
|
|
|
Re: Cannot execute kix32
|
|
Well Bryce, it isn't very welcome, that is true but I have always learned it isn't possible to know everything... So you have to learn how to search!! If people don't start reading the manual or the FAQ they don't know how to do it or they are too lazy . I don't want to accuse Sgtan of laziness but there are lots of post in which it is.
In that case I don't see any problem to say RTFM...
When he had read the ABC's of KiXtart board etiquette and message to new forum users he should know in about a minute:
" I. Dredging up or hijaaking (recycling) old topics - Please don't dredge up old topics unless you have good information to add. Don't recycle (hijaak) one as your own. The originator may have enabled email notification and may not want the email. Better instead, to start your own (new) topic and provide a link to a similar topic if it helps to describe your case."
|
Co
|
(MM club member)
|
2004-03-13 10:22 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
@Sgtan
MCA is talking about: "Your error cannot execute kix32 isn't a kixtart problem, but possible a permission problem. Verify your rights to your netlogon directory"
Did you checked that?
|
Co
|
(MM club member)
|
2004-03-13 10:27 AM
|
|
|
|
|
Re: Cannot execute kix32
|
|
There is a new thread I see... Unable to execute kix32.exe manually
I don't respond to this one anymore...
|
Lonkero
|
(KiX Master Guru)
|
2004-03-13 10:55 PM
|
|
|
|
|
Re: Cannot execute kix32
|
|
not new. he posted it lot before replied here.
|