Page 1 of 2 12>
Topic Options
#25756 - 2002-07-24 10:56 AM "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
I've created a local NETLOGON share on a NT 4.0 Workstation an put KIX32 and a kix script in that share. Via NT User Manager the login script was bind to a specific user (kix32 test.kix). This works very fine, when the Workstation was up and running. But when I logon directly after the system is coming up I got the error "failed to find/open script". After a few minutes and several logins it works...
Is there a way to make kix32 waiting for the script to become available as long as the system needs to come up ?

[ 24 July 2002, 10:57: Message edited by: MG ]

Top
#25757 - 2002-07-24 11:02 AM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is no need.
and, yes I have voted in your poll!
made a difference.

do you have more than one domain controller?
and if you do have, do they replicate?
and if they do, normally it can take up to 5 minutes to sync all the DC's with the newist script.

reading boards faq and moderators message could have saved you from me showing you [Razz]

cheers.
_________________________
!

download KiXnet

Top
#25758 - 2002-07-24 11:10 AM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
Hi,

thank you for your reply, but:

I used a STANDALONE NT 4.0 Workstaion with a LOCAL NETLOGON share !

[ 24 July 2002, 11:10: Message edited by: MG ]

Top
#25759 - 2002-07-24 11:37 AM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, why don't you use just your windows directory for the script and kix-executable...

how you call your script in the usermanager?
something like:
kix32.exe script.kix
?
or:
\\wksta\c$\netlogon\kix32.exe script.kix

or
\\wksta\c$\netlogon\kix32.exe \\wksta\c$\netlogon\script.kix
_________________________
!

download KiXnet

Top
#25760 - 2002-07-24 11:50 AM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
kix32 script.kix (as I wrote in my first post) [Smile]

This works, except when I login directly after a boot ! When all services are up and running there is no error !!!!

Therefore I would expect a kind of waitstate from the kix32.exe....

Mysterius for me is that the kix32 was started but the script not found until the whole system is up.... [Confused]

Top
#25761 - 2002-07-25 12:22 AM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it's just probably that the script is not searched from your local netlogon fake but from path.
this includes windir and in real server environment the netlogon share.

have you tried placing the script in windows root directory?
_________________________
!

download KiXnet

Top
#25762 - 2002-07-24 02:06 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
I believe, because the error only occurs at the first logon attempts after startup of the system, that Kix32 needs a NT service to be available. It would be nice to know which service this could be and if there is a workaround to make kix32 wait for this service....

This must be a Kix32 problem, because Kix32 was started out of the NETLOGON share and reported the error. A few minutes later it works fine !?!?

[ 24 July 2002, 14:08: Message edited by: MG ]

Top
#25763 - 2002-07-24 02:22 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mg, so you suspect it's kix needing nt service?
you can try it.
restart the system and leave it alone for 7-10 minutes which ensures that all services are up and running.
after that, try to log on.
if there is still error, your quess was wrong.
if no error, we will have to see more deeply into that.

cheers
_________________________
!

download KiXnet

Top
#25764 - 2002-07-24 02:36 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
Hi,

I wrote that there was NO error after for example 5 minutes after Ctrl+Alt+Del appears.

Top
#25765 - 2002-07-24 02:37 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Welcome to the board. I voted in your poll as well. I vote that you familiarize yourself with the
ABC's of KiXtart board etiquette as well.

I doubt it's a service dependency (well maybe server service) but rather that the share is not yet available.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#25766 - 2002-07-24 02:41 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
Hi,

I wrote that there was NO error after for example 5 minutes after Ctrl+Alt+Del appears.

Top
#25767 - 2002-07-24 02:45 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
on both times you also said about failure.
and that sounds like you tried and logged of and tried little later.
I just wanted to ensure that you are trying with booted machine without any logging on trials before that wait period.
_________________________
!

download KiXnet

Top
#25768 - 2002-07-24 03:09 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
I boot the machine and tried to logon several times and get the "failed to find/open script" error. After some attempts the kix script was started....
When I wait 5 minutes without doing anything after bootup it works, too.

If it is a service reason (I believe it is), is there a way around ?

Top
#25769 - 2002-07-24 03:11 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the winlogon service can be adjusted to require other services.
les passed the word of server service so you might check it to be dependent of it.

-
_________________________
!

download KiXnet

Top
#25770 - 2002-07-24 03:45 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
I will try to find the latest service coming up...
The dependency to the server service was not enough to be helpfull.

Good idea, but it wouldn't it be better to have kix32 doing that ?

Cause I am new to this forum is there a way to make suggestions to the development ?

Thank you for your help !
I will let you when I found a solution...

Top
#25771 - 2002-07-24 03:53 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mg, there is the problem of lack of need.
not many are using logonscript when no actual logon happens...
and what you are trying to do now is to make the script run like real logon to domain would have taken place.

also runonce keys and some other keys in the registry can do the same without that dependency and that makes you one of the million asking for such function.
as kix is not service but executable, the logon service is responsible of serving kix during logon.
if required stuff is not loaded up then, it's the service to blame, not exe using it.

cheers
_________________________
!

download KiXnet

Top
#25772 - 2002-07-24 05:21 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
MG,
Instead of trying to emulate a DC with \NetLogon, maybe you could go the route of NT4 TSE where a reg entry invokes a local logon script.

The TSE logon script is 'C:\WINNT\system32\usrlogon.cmd'

It is governed by the registry value 'AppSetup'
in 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon'. The ValueData is 'usrlogon.cmd'.

I don't have vanilla NT4 to test this on.

[ 07. August 2002, 16:18: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#25773 - 2002-07-24 05:23 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les, thanks for finding that for me as I didn't have a clue where I just saw that...
_________________________
!

download KiXnet

Top
#25774 - 2002-07-24 05:26 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
MG Offline
Fresh Scripter

Registered: 2002-07-24
Posts: 16
Thank you I will try that tomorrow and respond.

Thank you both very much for your help !!!!!!!! [Cool]

Top
#25775 - 2002-07-24 10:04 PM Re: "failed to find/open script" on local NETLOGON share in NT4.0
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Try executing your script from the RUN key in the registry. RUNONCE will run it only once than clean out the key, if you want something run every logon RUN is better. (I believe what I suggesting is equivalent to Les' suggestion.)

I suspect your basic problem is you do not have a domain or NT server running. I think you might be assuming NTWorkstation has the same functionality as NTServer when this is not true.

[ 24 July 2002, 22:05: Message edited by: JackLothian ]
_________________________
Jack

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.193 seconds in which 0.166 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org