#19678 - 2002-04-10 11:50 AM
variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
We have a problem on a win95 machine
The variable @ldomain is not recognised.
I have kixrpc-service installed on every logonserver, and kx16.dll kx32.dll and kx95.dll installed in the windows directory, where also kix32.exe is.
if the user logges on to a other machine there's no problem. I've copied the .dll's from the second machine to the first, with no succes.
the code is: code:
if @userid = ("test") ? "logondomain = @ldomain" ? "logonserver = @lserver" ? "pcdomain = @domain" endif
All the items where listed, except for the @ldomain, this one is empty. Anyone with an idea?
|
Top
|
|
|
|
#19680 - 2002-04-11 12:17 AM
Re: variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
nope, all of them are empty....
We've installed this service a couple of months ago, and this seems to be te only computer with this problem....... [ 10 April 2002, 13:03: Message edited by: Arjen ]
|
Top
|
|
|
|
#19682 - 2002-04-10 01:24 PM
Re: variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
it might be an solution, but i'm wondering why it's happening...
I've replaced all the kix-files, so where would be the problem. That's what i wanna know....
|
Top
|
|
|
|
#19683 - 2002-04-10 02:21 PM
Re: variable not known in win95
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
OK.. The server side is fine.. But when you login, do your users have access to KX95.DLL, KX16.DLL, KX32.DLL as well as KIX32.EXE? OK.. I re-read your initial post and yes.. What version of Kix are you running? Are the above DLLs out of the same archive that the KIX32.EXE is from? For example KX32.DLL should be version 3.60.0.0. And this is what is shown under 3.63 as well as 4.02.
Have you looked at this - http://www.jsiinc.com/SUBA/tip0100/rh0120.htm ?
- Kent
|
Top
|
|
|
|
#19684 - 2002-04-10 09:01 PM
Re: variable not known in win95
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
How are you calling the kix32.exe? The only thing I can think of (other than file versions) is that there may be something not quite right with your search path on the Windows 95 machine. Does the problem present itself if you are in the windows directory when you call the script?
Brian
|
Top
|
|
|
|
#19685 - 2002-04-11 07:38 AM
Re: variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
It's a problem in our logonscript for this computer.
Drivemappings based on logondomain are wrong mapped, just because the pc doesn't know @ldomain.
The code I've posted is just a part of a checking script, wich I've put in our logonscript to find the error.
|
Top
|
|
|
|
#19686 - 2002-04-11 09:07 AM
Re: variable not known in win95
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
What version of Internet Explorer is on this Win95 system? As long as your not in a locked down type of environment, maybe try updating IE with all the latest updates.
Try checking all the path locations for a possible file name for kix32 or your script name that may be an older copy somewhere in the path, or to rule that out locate and delete all copies of KIX32.EXE and the .DLL files locally.
Maybe also try using an account with NO logon script assigned. Then put a batch file in the startup folder using all local files that calls your test script.
MD C:\MYTEST Copy all the KiXtart v4.02 files into this folder. Delete any other copies of KiXtart from the computer in question.
BATCH
code:
@ECHO OFF C: CD MYTEST KIX32.EXE MYTEST.KIX
MYTEST.KIX
code:
cls ? "logondomain = "+@ldomain ? "logonserver = "+@lserver ? "pcdomain = "+@domain ? "Press any key to continue..." get $x
Please let us know if any of these ideas work or not.
|
Top
|
|
|
|
#19687 - 2002-04-11 09:12 AM
Re: variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
We're still working here with kix3.62, We've got some troubles here to upgrade, people don't really want to...
I've already logged in with an user with a different logonscript not using kix, and there was still the problem.
I can't test your script anymore, the costumer have the computer back now and he's waiting for reinstall.
I hope the problem will not return after reinstall, but i'm still wondering why this could happen...
|
Top
|
|
|
|
#19689 - 2002-04-14 06:22 AM
Re: variable not known in win95
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear Arjen,
Very important is that kixtart binaries are from same release.
First we advise you: - put the files kix32.exe, kx16.dll, kx32.dll, kx95.dll in your c:\windows directory. - remove all other kixtart binaries from your clients. Reasons:
- possible problems with finding the DLLs will not be there. Windows will
search and find them by PATH setting. - removing other binaries prevent problems with versions.
Secondly: - verify all KXRPC on your domain controllers and verify they are the right one. Third: - simply your script and BATch file. LOGON.BAT
code:
@echo off c:\windows\kix32 \\server\netlogon\logon.kix @echo off
logon.kix
code:
cls $=MessageBox("kixtart @kix","info ldomain=@ldomain / lserver=@lserver / domain=@domain")
Fourth: you can use following code to retrieve actual domain and ldomain values from your registry.
code:
$domain="" $ldomain="" IF ($NT_mode = "yes") $ikey="HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" IF (ExistKey($ikey) = 0) $domain=ReadValue($ikey, "DefaultDomainName") ENDIF $ikey="HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" IF (ExistKey($ikey) = 0) $ldomain=ReadValue($ikey, "CachePrimaryDomain") ENDIF ELSE $ikey="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSNP2\NetworkProvider" IF (ExistKey($ikey) = 0) $domain=ReadValue($ikey, "AuthenticatingAgent") ENDIF $ikey="HKEY_LOCAL_MACHINE\Security\Provider" IF (ExistKey($ikey) = 0) $ldomain=ReadValue($ikey, "Container") ENDIF ENDIF IF (len($domain) = 0) IF (len(@ldomain) <> 0) $domain=@ldomain ELSE $domain=@domain ENDIF IF (len($domain) = 0) $domain="~domain" ; - unknown @domain/@ldomain value - ENDIF ENDIF IF (len($ldomain) = 0) $ldomain=$domain ENDIF
greetings.
btw: Arjen, what are your problems with upgrading? did you have also problems with upgrading to f.e. kixtart3.63 release?
|
Top
|
|
|
|
#19690 - 2002-04-15 07:46 AM
Re: variable not known in win95
|
Anonymous
Anonymous
Unregistered
|
I've checked all thel .dll-files, they were only in the windows dir.
And i would rather not changing the loginscript for just 1 computer.
But the computer is being reinstalled, and i haven't heard of any problems yet.
I don't know what was the problem, but i guess It's over now.....
Thanx all for thinking with me...
|
Top
|
|
|
|
#19692 - 2002-04-18 03:45 AM
Re: variable not known in win95
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear Jack Lothian,
Your suggestion is good input for the FAQ forum. A possible description can be: what to do with kixtart problems. greetings.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|