#155460 - 2006-01-17 02:08 AM
logon.bat cannot be run at logon computer, help!
|
Gage
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
|
|
|
|
#155462 - 2006-01-17 03:18 AM
Re: logon.bat cannot be run at logon computer, help!
|
Gage
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
|
|
|
|
#155464 - 2006-01-17 04:14 AM
Re: logon.bat cannot be run at logon computer, help!
|
Gage
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
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
|
|
|
|
#155468 - 2006-01-17 07:42 AM
Re: logon.bat cannot be run at logon computer, help!
|
Gage
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
|
|
|
|
#155470 - 2006-01-17 11:25 AM
Re: logon.bat cannot be run at logon computer, help!
|
NTDOC
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
|
|
|
|
#155474 - 2006-01-17 02:28 PM
Re: logon.bat cannot be run at logon computer, help!
|
Radimus
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)
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 675 anonymous users online.
|
|
|