Page 1 of 1 1
Topic Options
#155460 - 2006-01-17 02:08 AM logon.bat cannot be run at logon computer, help!
Gage Offline
Fresh Scripter

Registered: 2006-01-17
Posts: 5
Hi, Dear all,

I have a win2k3 sp1 DC, and sometimes it won't run on the script in the netlogon directory: logon.bat, I have to restart the pc or run it manually. before it was working well. I have five map drive there, but also sometime only 2 or 3 map drive is mapped. I am wondering why the logon.bat is not run? how can fix it. help!

the logon.bat is as below:


@Echo Off

%0\..\kix32.exe %0\..\Huisse.scr

Top
#155461 - 2006-01-17 02:44 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
What version of KiXtart?
What client versions?
Have you looked in the event viwer for the clients to see what if any errors are being generated.
How many Domain Controllers?
Are all Domain Controllers replicating correctly.
Check and Double check replication
Is it one or two clients or all clients having issues?
How many clients overall on the system?
What are the link speeds of the network?
Have you check to make sure no one has modified the rights and that the logon is setup in the admin tools.
 

Top
#155462 - 2006-01-17 03:18 AM Re: logon.bat cannot be run at logon computer, help!
Gage Offline
Fresh Scripter

Registered: 2006-01-17
Posts: 5
Normally when users logined the computer several days ago, it will display the logon.bat screen, I didn't change anything but now it doesn't appear that screen when log in these days.
Quote:

What version of KiXtart? I use the kix32.exe which publish in Jan. 2002, the kx32.dll version is 3.60.0.0

What client versions? windows xp sp1, and some sp2

Have you looked in the event viwer for the clients to see what if any errors are being generated. yes, I read the event viewer, but not special error in it.it happened on all the clients, and a new installed pc also happened. so I think maybe something wrong in the server.

How many Domain Controllers? 2 Domain Controllers.

Are all Domain Controllers replicating correctly. yes, I check the replication, they works well.
Check and Double check replication

Is it one or two clients or all clients having issues? it happens on all the clients, sometimes some work, sometimes some don't work, but it happens on all the clients even the new installed PC.

How many clients overall on the system? about 20 PC, some of them are workstation, the speed is very fast.

What are the link speeds of the network? 100Mbps connection speed, the network is well, we read the files from the servers, it is fast. I tried to run the script manually, it also finish running very fast.

Have you check to make sure no one has modified the rights and that the logon is setup in the admin tools. not, I am the only administarato or the server, these days I changed nothing settings, only just updating the server service pack to win2k3 sp1, but I updated it 1 month ago, it worked well at that time after I updated. only these 2 weeks has the problem




Top
#155463 - 2006-01-17 03:51 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Well I'm not trying to be mean or coy, but it's not magic. Something quit working and if you can't or won't supply requested information when trying to help you then we won't be able to help you.

Simply saying it doesn't work is not a trouble-shooting method that is very often approved of by anyone.

Please provide the details of requested information if you want assistance.
 

Top
#155464 - 2006-01-17 04:14 AM Re: logon.bat cannot be run at logon computer, help!
Gage Offline
Fresh Scripter

Registered: 2006-01-17
Posts: 5
1. I use the kix32.exe which publish in Jan. 2002, the kx32.dll version is 3.60.0.0

2. I use the windows xp sp1, and some sp2

3. yes, I read the event viewer, but not special error in it.it happened on all the clients, and a new installed pc also happened. so I think maybe something wrong in the server.

4. there are 2 Domain Controllers.

5. yes, I checked the replication, they works well.


6. it happens on all the clients, sometimes some work, sometimes some don't work, but it happens on all the clients even the new installed PC.

7. about 20 PC in my organization, some of them are workstations, the speed is very fast.

8. the network is 100Mbps connection speed, the network is well, we read the files from the servers, it is fast. I tried to run the script manually, it also finish running very fast.

9. not, I am the only administarato or the server, these days I changed nothing settings, only just updating the server service pack to win2k3 sp1, but I updated it 1 month ago, it worked well at that time after I updated. only these 2 weeks has the problem.

This is my *.scr

Code:

;

Color r+/n
Small
Color b+/n
Box (0,0,24,79,FULL) ; 'background grid'
Color b/n
Box (7,9,20,71,FULL) ; 'shadow' of the box
Color g+/n
Box (6,10,19,70,FULL)

Color w+/n
At (8,15) "Userid : " ; display some text strings
At (9,15) "Full name : "
At (10,15) "Comment : "
At (11,15) "Privilege : "
At (12,15) "Workstation : "
At (13,15) "Domain : "
At (14,15) "Logon Server : "
At (15,15) "O.S. : "

Color y+/n
At ( 8,30) @userid ; ...and some macro's
At ( 9,30) @fullname
At (10,30) @comment
At (11,30) @priv
At (12,30) @wksta
At (13,30) @domain
At (14,30) @lserver
At (15,30) @DOS
Color w/n

; Delete All Mappings
Use * /DELETE

; Set Time via HIDC Synchroon
SetTime "\\HVSRV1"

; Algemene Drive Mappings
Use I: "\\HVSRV1\Data"
Use J: "\\HVSRV2\Projects"
Use O: "\\HVMAILSRV1\FinalOrders"
Use P: "\\HVMAILSRV1\FinalProjects"


AddPrinterConnection("\\hvsrv2\CanoniR2000")
AddPrinterConnection("\\hvsrv2\HPColor 5500DN PS")



Cookie1
Exit



[edit]
Lonk added the code tags for readability


Edited by Jooel (2006-01-17 09:16 AM)

Top
#155465 - 2006-01-17 04:17 AM Re: logon.bat cannot be run at logon computer, help!
Gage Offline
Fresh Scripter

Registered: 2006-01-17
Posts: 5
it is the detail info. I can provide at the moment. anything else I need to send? if I run it manually, it works.
my question is that why the script won't run when the clients is login.
need your help, thanks.


Edited by Gage (2006-01-17 04:18 AM)

Top
#155466 - 2006-01-17 07:29 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Well by default Fast User Mode Switching should be disabled on Windows XP when it joins a Domain, however some Admins have expressed issues with it being problematic until it was disabled via GPO or script.

Please take a look here and see if any of these suggestions help.

Windows XP Professional Fast Logon Optimization
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=111153
 
Batch-less (or remove NTLOGON.BAT) Login script
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=81663
 
Use of %0\..\ to launch KiX
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=81645
 

Top
#155467 - 2006-01-17 07:31 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
P.S. Since you say you're the only Admin now days I can't recommend highly enough that it would be very beneficial for you to update KiXtart to 4.51

Even in the 3.x versions you're running an old one that had many bugs fixed by version 3.63

 

Top
#155468 - 2006-01-17 07:42 AM Re: logon.bat cannot be run at logon computer, help!
Gage Offline
Fresh Scripter

Registered: 2006-01-17
Posts: 5
I will read it and try to find the solution for my problem.Thank you very much.
Top
#155469 - 2006-01-17 09:21 AM Re: logon.bat cannot be run at logon computer, help!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw doc, he did answer to all your questions in that first reply.
just that the text was inside quote tags and thus unreadable...

and, he is running 4.02 and thus 3.63 would be worse, right?
_________________________
!

download KiXnet

Top
#155470 - 2006-01-17 11:25 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
I don't see where he says he is using 4.02

Quote:


What version of KiXtart? I use the kix32.exe which publish in Jan. 2002, the kx32.dll version is 3.60.0.0





Top
#155471 - 2006-01-17 11:26 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
2002-01-21 - 4.02 build 71

Hmmm, so why the DLL that version?

Top
#155472 - 2006-01-17 11:28 AM Re: logon.bat cannot be run at logon computer, help!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Gage,

I apologize - didn't pay attention and read your replies in the quoted text, I mistakenly just thought you quoted me back what I posted.

Sorry guy.

Top
#155473 - 2006-01-17 01:34 PM Re: logon.bat cannot be run at logon computer, help!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
doc, the dll doesn't need no updating for most of the time.
thus, it's version number does not keep up with the executables.
_________________________
!

download KiXnet

Top
#155474 - 2006-01-17 02:28 PM Re: logon.bat cannot be run at logon computer, help!
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I'd go with the PCs are logging in before network is available.

$=writevalue("HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon","SyncForegroundPolicy","1",REG_DWORD)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#155475 - 2006-01-17 02:42 PM Re: logon.bat cannot be run at logon computer, help!
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Description of the Windows XP Professional Fast Logon Optimization feature
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

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
1 registered (Allen) and 675 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.07 seconds in which 0.028 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