Page 2 of 3 <123>
Topic Options
#31070 - 2002-10-31 03:44 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pech, what means no meaning.
could you be so kind that you give the output of the script window to us, please.
_________________________
!

download KiXnet

Top
#31071 - 2002-10-31 03:54 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
I meant the result same as my script (LogonNT.kix)

I cann't give the screen to you, coz .. no action to do anything with USE command.. (first logon)

Pech

Top
#31072 - 2002-10-31 03:57 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pech, I don't quite follow...

I know that you have said about ten times that it does not work.
what I don't know where the error is.
instead of repeating that it does not work you could say what error kix gives you.

now, I thought that if I set up a script for you with error codes and all, you could give back the errors.
eh, maybe I just asked too much.
_________________________
!

download KiXnet

Top
#31073 - 2002-10-31 04:04 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
I meant my LogonNT.kix USE command cann't map drive.

When I login to network at first time.
Logon.bat and Than call to LogonNT.kix.

USE "*" /delete --> Disconnect from all map drive : Work
USE H: "\\bstl_svr3\%username%$" --> Map drive, but It can't map drive with No any error.
Shell "\\bstl_svr3\ofscan\autopcc.exe" --> Antivirus update pattern : Worked and No any error.

After finished the run script. I open in my computer, no network drive mapping.

And The I wait a few minute and run script by manual. (\\bstl_svr1\netlogon\logon.bat) Map drive is working.

Pech

Top
#31074 - 2002-10-31 04:09 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, what is the difference with "work" and "no any error"

I understand it as they are all the same and the logonscript returns you:
quote:

nt logonscript
4.10
5.0
\\server\netlogon
delete persistent mappings: Command completed succesfully
mapping h: to homeshare: Command completed succesfully
mapping i: to groupshare: Command completed succesfully
logonscript ran

press any key to close window


is this the case?
_________________________
!

download KiXnet

Top
#31075 - 2002-10-31 04:22 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
delete persistent mappings: Command completed succesfully
mapping h: to homeshare: Command completed but NOT succesfully: Cann't Map drive and no any error
mapping i: to groupshare: Command completed NOT succesfully: Cann't Map drive and no any error
logonscript ran

press any key to close window

Top
#31076 - 2002-10-31 04:27 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh, there is no error if it says command completed successfully and I quess that is the case even though you again didn't show it.
dunno, you have a habit of repeating [Wink]

I know that it does not work.
so, did you do it with your own script or with copy&pasted one from my previous post?

the last thing I'm after with this is that if you used my script, I changed the run to shell.

in some cases that has affect too.

ok, do you have changed the logon.bat already on the part of calling the kix in nt-section?
_________________________
!

download KiXnet

Top
#31077 - 2002-10-31 04:30 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, I asked for the @dos, @kix and @ldrive results in the script but seems that your kix is broken as it denies the pleasure of showing those...
_________________________
!

download KiXnet

Top
#31078 - 2002-10-31 04:48 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
Result:
----------------------------------------
4.11
5.0
\\bstl_svr1\netlogon\
delete persisten mapping : The operation completed succusesfull
mapping h: to home share : An extended error has occurred.
longonscript ran
press any key to close windows.
----------------------------------------

That's it!

Pech

Top
#31079 - 2002-10-31 04:51 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
thank you!

now we know the error!
and that it never goes to the ingroup.
that means also that the run or shell does not run either.

could you change the @serror to @error to see the errorcode number and I'll start searching for the explanation.

and, you didn't answer on that logon.bat part.
did you change the ntlogon.kix line?
_________________________
!

download KiXnet

Top
#31080 - 2002-10-31 05:07 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
Result:
----------------------------------------
4.11
5.0
\\bstl_svr1\netlogon\
delete persisten mapping : 0
mapping h: to home share : 1208
mapping h: to group share : 1208
longonscript ran
press any key to close windows.
----------------------------------------

That's it!

Pech

Top
#31081 - 2002-10-31 05:08 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
changed that logon.bat?
_________________________
!

download KiXnet

Top
#31082 - 2002-10-31 05:14 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
ECHO ON

IF "%OS%" == "Windows_NT" goto NT_OS
CALL \\bstl_svr1\netlogon\kix32.exe PLogon9x.kix
EXIT

:NT_OS
CALL \\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\PLogonNT.kix
EXIT

How to change?

Pech

Top
#31083 - 2002-10-31 05:19 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
like I wrote it about 12 replies before [Big Grin]

if you open commandline and type "call /?" you see that it may not be used for calling an exe.

so, make your logon.bat as:

ECHO ON

IF "%OS%" == "Windows_NT" goto NT_OS
z:\kix32.exe z:\PLogon9x.kix
EXIT

:NT_OS
kix32.exe PLogonNT.kix
EXIT


tell also does that remove the error, or do I start looking for explanation.
that error is so spooky that I want "us" to try normalizing before the search...

[ 31. October 2002, 05:21: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#31084 - 2002-10-31 05:35 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
If I dint specify path of netlogon

\\bstl_svr1\netlogon\

kix32.exe--> Bad command cann't find this command or paht of command

-----------------------------------------------
ECHO ON

IF "%OS%" == "Windows_NT" goto NT_OS
\\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\PLogon9x.kix
EXIT

:NT_OS
\\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\PLogonNT.kix
EXIT
-----------------------------------------------

Error code in LogonNT.kix
in Map drive is : 1208

Top
#31085 - 2002-10-31 05:37 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
can't find command?
how are you running the batch?
if you have nt-domain, what is specified as logonscript in usermanager?
_________________________
!

download KiXnet

Top
#31086 - 2002-10-31 05:51 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
Your script
ECHO ON
IF "%OS%" == "Windows_NT" goto NT_OS
z:\kix32.exe z:\PLogon9x.kix
EXIT

:NT_OS
kix32.exe PLogonNT.kix
EXIT
Has error because, not spectify path

I keep kix32.exe in \\bstl_svr1\netlogon, I must specify path for kix32

My Script
ECHO ON
IF "%OS%" == "Windows_NT" goto NT_OS
\\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\PLogon9x.kix
EXIT

:NT_OS
\\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\PLogonNT.kix
EXIT
**

I put PLogon.bat in Profile (User property)
Also It has no error with PLogon.bat.
An Error has occurred with PLogonNT.kix

Pech

Top
#31087 - 2002-10-31 05:56 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
for nt/w2k/xp there is no need to specify path during logon if the script and kix32 is in netlogon.
for win9x the z: drive is mapped automatically to netlogon during logon.

but, if you get error with that, it means that you don't have the kix32 in the netlogon server.
you may also have problems in your network elsewhere.

I had 3 weeks ago broken DNS setup and caused half of the wksta's to fail to run the script.

with windows NT/2000/xp you can put in your usermanager:
kix32 logon.kix

and it works too.
if not there is error somewhere.

so, now I must ask, does all your logonservers have the script and kix32 in their netlogon or just that one?
_________________________
!

download KiXnet

Top
#31088 - 2002-10-31 06:08 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 2002-10-16
Posts: 61
Loc: Thailand
Impossible I keep kix32.exe in \\bstl_svr1\netlogon (Only one DC)

When I browser the network,I can see all the file in this file sharing (\\bstl_svr1\netlogon).

If I'm specify path I can't run it.

In our network, my client has many client such as 98,NT,2000 and XP.

How I can specify the script in User Profile.
Pech

Top
#31089 - 2002-10-31 06:14 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
like you said you did for the bat.

anyway, you should not run netlogon service on any server not having the script.
all dc's should indeed have those scripts in netlogon drive.

to specify the script directly in profile just write:
kix32 scriptname.kix

in there.
it does not work for win9x but testing purposes it handles.
and all users in my lan have that as I've got rid of the decease of win9x.
_________________________
!

download KiXnet

Top
Page 2 of 3 <123>


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

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

Generated in 0.077 seconds in which 0.03 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