Page 1 of 1 1
Topic Options
#19678 - 2002-04-10 11:50 AM variable not known in win95
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? [Confused]

Top
#19679 - 2002-04-11 12:13 AM Re: variable not known in win95
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Hi Arjen,

Can you check if you don't see these macros too?:

@HomeDrive
@PrimaryGroup
@RServer
@SID

If you can see those we can safely say the RPC service is working, and we have to look at the network configuration. If you don't see them we should look at the RPC configuration a bit more...
_________________________
The Code is out there

Top
#19680 - 2002-04-11 12:17 AM Re: variable not known in win95
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
#19681 - 2002-04-11 12:26 AM Re: variable not known in win95
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
ok, you're saying that you just have one W95 system that can't resolve the variables?

If that's the case... imho, you shouldn't look any further but just re-install that system, or isn't that an option?
_________________________
The Code is out there

Top
#19682 - 2002-04-10 01:24 PM Re: variable not known in win95
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 Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#19684 - 2002-04-10 09:01 PM Re: variable not known in win95
BrianTX Offline
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
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 Offline
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
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
#19688 - 2002-04-11 09:25 AM Re: variable not known in win95
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
I'm not really sure, that is why I wanted you to try some of these suggestions.

It could possibly be that KiX was looking for a file that a newer version of IE has. Les used to use 3.62 but I don't recall him ever complaining about that. Then again he does not seem to have many Windows 9x systems (if any).

I assume something is wrong with that computer since you don't say it is a problem on any other system. I use 3.63 and I don't have this problem on any system I've seen so far.

Well, if you don't have it anymore then I guess it is not an issue until such a time as it resurfaces. If it does, keep this link in mind for some things to try.

Top
#19689 - 2002-04-14 06:22 AM Re: variable not known in win95
MCA Offline
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?
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#19690 - 2002-04-15 07:46 AM Re: variable not known in win95
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
#19691 - 2002-04-16 02:13 AM Re: variable not known in win95
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
In most cases this happens because a file is missing or there is an incompatible file version associated with the problem machine. This problem comes up daily in dozens of different variants.

Suggestions.

1. Make sure the same version of kxrpc is installed on all PDC & BDC servers.
2. Make sure your logon scripts are replicating to all PDC & BDC.
3. Make sure all netlogon shares have the complete set of kix dll files & make sure they are same versions of the kix dlls (replication should fix this)
4. Make sure that locally each machine has the same versions of the kix dlls installed.
5. Make sure kxrpc & dlls are same version.
6. Make sure that all machines are starting the same logon script.
7. Make sure logon scripts are starting on all machines.
8. if your logon script is using shares other than netlogon make sure all machines are successfully attaching these share.
9. On win9x machines do not try to assign the z.
10. Watch out for old versions of logon scripts, kix scripts or kix dlls installed locally.

I hope this helps. MCA programs can help you automate these checks.
_________________________
Jack

Top
#19692 - 2002-04-18 03:45 AM Re: variable not known in win95
MCA Offline
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.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.063 seconds in which 0.023 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